[PATCH 1/1] dma: imx-sdma: buf_tail should be initialize in prepare function
Shawn Guo
shawn.guo at linaro.org
Wed May 23 23:20:29 EDT 2012
On Mon, May 21, 2012 at 08:31:34PM +0800, Richard Zhao wrote:
> This fix audio underrun issue. When SNDRV_PCM_TRIGGER_STOP
> and SNDRV_PCM_TRIGGER_START, it calls prepare again. buf_tail
> should be reset to zero.
> So move buf_tail initialization into prepare function.
>
I tried the patch on imx51, and it does not fix the issue for me.
Regards,
Shawn
root at linaro-developer:~# aplay audio8k16S.wav
Playing WAVE 'audio8k16S.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Stere
o
^Z
[1]+ Stopped aplay audio8k16S.wav
root at linaro-developer:~# fg
aplay audio8k16S.wav
underrun!!! (at least 2034.382 ms long)
More information about the linux-arm-kernel
mailing list