ENGR00300188-2 ASoC: imx-hdmi-dma: Clear offset in the trigger init
authorNicolin Chen <Guangyu.Chen@freescale.com>
Thu, 6 Mar 2014 11:14:29 +0000 (19:14 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Wed, 16 Apr 2014 13:57:53 +0000 (08:57 -0500)
commit01e536e51e7c8ddb7d568bce2402966dbb3797ec
treec90c65a632636c723635d8169ee3e29c56b0b11f
parenta7f1d47078a8b61b1cf13b9f6cd07246268acc0b
ENGR00300188-2 ASoC: imx-hdmi-dma: Clear offset in the trigger init

The offset reflects the current position of DMA access in the ALSA ring buffer.
So we should clear it before re-start DMA engine becasue the DMA access should
re-start its job from the 0 position. If we don't do this, the driver might get
a wrong idea about current position of DMA access. Thus fix it.

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