summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorNicolin Chen <Guangyu.Chen@freescale.com>2014-03-21 17:30:44 +0800
committerNicolin Chen <Guangyu.Chen@freescale.com>2014-03-25 10:56:21 +0800
commit5b5f5e3f7b1dd41022e6e587460fd912fcd481d0 (patch)
tree409e768f9d1e9226901ceeab3a29312b2cd2b1ac /sound
parent50d5d4bf13603a49c44ee110758672f5a9f19db0 (diff)
ENGR00304914-1 ASoC: imx-hdmi-dma: Limit period size for 6DQ
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>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/fsl/imx-hdmi-dma.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/fsl/imx-hdmi-dma.c b/sound/soc/fsl/imx-hdmi-dma.c
index 88558b6b9343..a0c6406969c9 100644
--- a/sound/soc/fsl/imx-hdmi-dma.c
+++ b/sound/soc/fsl/imx-hdmi-dma.c
@@ -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;