summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Liangjun <b36089@freescale.com>2012-05-04 17:49:51 +0800
committerXinyu Chen <xinyu.chen@freescale.com>2012-05-08 16:07:06 +0800
commita684b785321acc7043307b537f7622cdc237c7d0 (patch)
tree4c094fe3e95ee396cfa4511201b7a8125ec18566
parentb878b33cfb2028ea9be2c31920d977f28a934346 (diff)
ENGR00181697 HDMI: fix ahb bus error bug
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>
-rw-r--r--sound/soc/imx/imx-hdmi-dma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/imx/imx-hdmi-dma.c b/sound/soc/imx/imx-hdmi-dma.c
index ac7ac5d6e3fb..d391267c108b 100644
--- a/sound/soc/imx/imx-hdmi-dma.c
+++ b/sound/soc/imx/imx-hdmi-dma.c
@@ -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);