]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00220181-2 HDMI SDMA: workround for HDMI SDMA audio no sound issue
authorChen Liangjun <b36089@freescale.com>
Sat, 11 Aug 2012 07:36:20 +0000 (15:36 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:12 +0000 (08:35 +0200)
Issue: When playback HDMI audio in SDMA stress test, HDMI audio may stop
caused by SDMA channel's failing to work. While checking the SDMA register
and HDMI module stauts, we found that SDMA fall to an unknown error state.
The issue is detected both in RIGEL TO1.1 and ARIK TO1.2.

This patch introduces a workround for this issue: For the memory passed
to SDMA core, HDMI driver would allocate it with the attribute of C=0,
B=0 instead of C=0, B=1. This patch have be tested in RIGEL TO1.1 for
about 60 hours, no issue happens.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
sound/soc/imx/imx-hdmi-dma.c

index 18e3a016cca8d689f24499485678a2ad579dc932..f0afcf1ac52b60f29210c7c4efc75fe71ba982bf 100644 (file)
@@ -1337,7 +1337,7 @@ static int __devinit imx_soc_platform_probe(struct platform_device *pdev)
        if (hdmi_SDMA_check()) {
                /*To alloc a buffer non cacheable for hdmi script use*/
                hdmi_dma_priv->hdmi_sdma_t =
-                       dma_alloc_coherent(NULL,
+                       dma_alloc_noncacheable(NULL,
                                sizeof(struct hdmi_sdma_script_data),
                                &hdmi_dma_priv->phy_hdmi_sdma_t,
                                GFP_KERNEL);