23 Jul
2012
23 Jul
'12
12:19 p.m.
On Mon, Jul 23, 2012 at 3:36 PM, Vinod Koul vinod.koul@linux.intel.com wrote:
In many modern SoCs the audio DSP can buffer the PCM ring buffer data. Today we have no means to represent this buffering and ALSA wrongly detects an overrun when hw_ptr reaches app_ptr value, though DSP may still have some buffered data.
This patch tries to add a new field "soc_delay" to represent buffering done in DSPs. This value is also used for the xrun calculations in ALSA.
Couldn't we employ snd_pcm_hw_params.fifo_size for the purpose ?