commit | 8e2e27c7444ba7880aa0a4cb07a79de130d0ed93 | [log] [tgz] |
---|---|---|
author | Richard Zhao <richard.zhao@freescale.com> | Mon Jun 04 09:17:24 2012 +0800 |
committer | Vinod Koul <vinod.koul@linux.intel.com> | Thu Jun 07 13:48:42 2012 +0530 |
tree | 085658546fe857444d2b629d5970e71e669ac2fe | |
parent | 30c1dc0ff30b5552e8af555265dbeac5637cbb48 [diff] |
dma: imx-sdma: buf_tail should be initialize in prepare function 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. Signed-off-by: Richard Zhao <richard.zhao@freescale.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>