]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00181697 HDMI: fix ahb bus error bug
authorChen Liangjun <b36089@freescale.com>
Fri, 4 May 2012 09:49:51 +0000 (17:49 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:34 +0000 (08:34 +0200)
In ARIK, to prevent noise cause by false triggered burst, we reduce
the incr type to 4. and the change may cause bus_error because a
burst may unexpectly stop and thus an AHB bus error happens.

Reset HDMI Audio FIFO state to prevent AHB bus error.
Signed-off-by: Chen Liangjun <b36089@freescale.com>
sound/soc/imx/imx-hdmi-dma.c

index ac7ac5d6e3fb7fb615545959492d4b34ba40deed..d391267c108bb6a2e8435f04213baa7fbe7f10be 100644 (file)
@@ -24,6 +24,7 @@
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
+#include <linux/delay.h>
 
 #include <sound/core.h>
 #include <sound/initval.h>
@@ -883,6 +884,9 @@ static int hdmi_dma_trigger(struct snd_pcm_substream *substream, int cmd)
                }
                dumpregs();
 
+               hdmi_fifo_reset();
+               udelay(1);
+
                hdmi_dma_priv->tx_active = true;
                hdmi_dma_start();
                hdmi_dma_irq_mask(0);