From: Richard Zhao Date: Mon, 4 Jun 2012 01:17:24 +0000 (+0800) Subject: dma: imx-sdma: buf_tail should be initialize in prepare function X-Git-Tag: v3.5-rc4~12^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e2e27c7444ba7880aa0a4cb07a79de130d0ed93;p=pandora-kernel.git 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 Acked-by: Shawn Guo Signed-off-by: Vinod Koul --- Reading git-diff-tree failed