]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00300188-1 ASoC: imx-hdmi-dma: Double the buffer and period sizes
authorNicolin Chen <Guangyu.Chen@freescale.com>
Fri, 7 Mar 2014 11:59:04 +0000 (19:59 +0800)
committerNicolin Chen <Guangyu.Chen@freescale.com>
Tue, 11 Mar 2014 02:42:17 +0000 (10:42 +0800)
commita510c49de7bfda5462c6df3c24e6454ca8efe6a6
tree502a0b612ec4fea847c57ebd68a7724d48df68cc
parent367bbe4a01a449e4e8a7dacd23c830910b47e13b
ENGR00300188-1 ASoC: imx-hdmi-dma: Double the buffer and period sizes

We found HDMI Audio has a performance issue when playback 8 channels 192KHz
files, CPU might lag its interrupt responsing while SDMA continues updating
HDMI internal AHB DMA's address and restarting AHB DMA, which resulted the
noise when AHB DMA access overlaps with the data copy procedures in this
driver.

Thus we here double the buffer size and period size of HDMI Audio to chop
the CPU interrupt to its half in the same span of time so that we can keep
the data copy procedures safe and provent it from overlapping access with
AHB DMA.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
(cherry picked from commit 04af1a351e016f52276ae002fd9f64b6b2962168)
sound/soc/fsl/imx-hdmi-dma.c