From: Ben Gardiner Date: Tue, 24 May 2011 18:50:18 +0000 (-0400) Subject: ASoC: davinci-pcm: fix audible glitch on 2nd ping-pong playback X-Git-Tag: v3.1-rc1~271^2~2^2~133 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef39eb6f212996ede8da47ef45e6dffff1121ec7;p=pandora-kernel.git ASoC: davinci-pcm: fix audible glitch on 2nd ping-pong playback The release of the dma channels was being performed in prepare and there was a edma_resume call for the asp-channel only being executed on START, RESUME and PAUSE_RELEASE. The mcasp on da850evm with ping-pong buffers enabled was exhibiting an audible glitch on every playback after the first. It was determined through trial and error that the following two changes fix this problem: 1) Move the edma_start calls from prepare to trigger and 2) reverse the order of starting the asp and ram channels. Signed-off-by: Ben Gardiner Reviewed-by: Steven Faludi Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed