summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorNicolin Chen <Guangyu.Chen@freescale.com>2014-03-21 17:30:44 +0800
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 08:58:11 -0500
commit8c0643339ecf342921b75ccc03c98abbb080f0ff (patch)
tree9f9a2dd0567babad44e3295581ddc885744bc6ac /sound/soc
parent94401fef53c179285394c9610bfbd1a2882e358b (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> (cherry picked from commit 5b5f5e3f7b1dd41022e6e587460fd912fcd481d0)
Diffstat (limited to 'sound/soc')
-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;