15 May
2009
15 May
'09
9:01 a.m.
Laurent Pinchart wrote:
To copy data from the ALSA ring buffer I need to know how much data is available at that particular moment, in order to avoid buffer underruns.
This is not how ALSA drivers are supposed to work. The framework was designed for DMA devices that run asynchronously and just take data out of the ring buffer whenever they need them. Your driver should work in the same way, i.e., you queue a packet of data when you need to queue it.
Best regards, Clemens