Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: refactoring



Gerd Knorr wrote:

Well, unlike the application the kernel driver can stop the DMA in case
there are no more empty buffers which are to fill with data ...

Data would get lost in both cases, not?

Yes.

The difference is that if the driver stops the DMA it can:

- notify the app about that (both dvb + alsa return some error code,
with v4l2 you can see that by checking sequence numbers or
timestamps) and.

You can check for data loss by looking on the Continuity Counter between packets.

- you don't have the risc that the data changes while you are
processing it because the ring buffer overflows ...

this could get catched by checking the write pointer position after packet processing, not?

Holger





Home | Main Index | Thread Index