]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00304914-1 ASoC: imx-hdmi-dma: Limit period size for 6DQ
authorNicolin Chen <Guangyu.Chen@freescale.com>
Fri, 21 Mar 2014 09:30:44 +0000 (17:30 +0800)
committerNicolin Chen <Guangyu.Chen@freescale.com>
Tue, 25 Mar 2014 02:56:21 +0000 (10:56 +0800)
The HDMI IP in i.MX6DQ has a bug that it limits the dma period size within 8K.

Patch 'ENGR00300188-1 ASoC: imx-hdmi-dma: Double the buffer and period sizes'
doubled the period size which works great with Dual Lite but broke the HDMI
audio function on DQ. Thus fix it for 6DQ case.

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

index 88558b6b934395543fc5be43b1f8ef7734e706f0..a0c6406969c9ca51b6c326e9e82d5f538d93877c 100644 (file)
@@ -1064,6 +1064,15 @@ static int imx_soc_platform_probe(struct platform_device *pdev)
 
        dev_set_drvdata(&pdev->dev, priv);
 
+       switch (hdmi_readb(HDMI_REVISION_ID)) {
+       case 0x0a:
+               snd_imx_hardware.period_bytes_max = HDMI_DMA_PERIOD_BYTES / 4;
+               snd_imx_hardware.period_bytes_min = HDMI_DMA_PERIOD_BYTES / 4;
+               break;
+       default:
+               break;
+       }
+
        ret = snd_soc_register_platform(&pdev->dev, &imx_hdmi_platform);
        if (ret)
                goto err_plat;