]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00305624-2 ASoC: imx-hdmi-dma: Correct the appl pointer
authorNicolin Chen <Guangyu.Chen@freescale.com>
Tue, 25 Mar 2014 03:46:35 +0000 (11:46 +0800)
committerNicolin Chen <Guangyu.Chen@freescale.com>
Thu, 27 Mar 2014 11:20:00 +0000 (19:20 +0800)
commit5d0d4e1558fa0c235691436e1c5d26d9c8950775
tree90c4a0f7d56109e53ff4dcff68ee5ad394b31093
parentaca6d0c4c96d658021bda4b5a4e454076e27e9f2
ENGR00305624-2 ASoC: imx-hdmi-dma: Correct the appl pointer

We might not be able to get appl_ptr, so we estimated it by using hw_ptr,
while the distance between then should not be 2 * priv->period_bytes
initially but 8 * priv->period_bytes as we pri-filled one entire buffer
size at the beginning. The driver's memory access might be overlapped
with ALSA's buffer updating. So this patch fixes this inaccurate distance.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
sound/soc/fsl/imx-hdmi-dma.c