aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorNicolin Chen <Guangyu.Chen@freescale.com>2014-04-03 03:52:14 -0400
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:58:16 -0400
commit13b4ee658c7f826809cccbbd30903391ba84beb4 (patch)
tree6f93a79dc788730e88bf8e61dda1fccb4ee3a63b /sound/soc/fsl
parent92a0a11d48b72f710e8d8151da38c3cc036d7d19 (diff)
ENGR00306875-1 Revert "ENGR00305624-2 ASoC: imx-hdmi-dma: Correct the appl pointer"
After change the pointer, ALSA lib would re-copy the initial data to DMA buffer because the pointer is pointing the zero position at the beginning, which results an audiable duplicated playback at the first eight periods. Even though dropping this patch would cause pointer being incorrectly estimated. But to maintain the sanity of basic playback, we revert the previous patch. This reverts commit 5d0d4e1558fa0c235691436e1c5d26d9c8950775. Acked-by: Wang Shengjiu <b02247@freescale.com> Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com> (cherry picked from commit cb6cd68b00fbb52852101ca2f3bc93ae45310b66)
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/imx-hdmi-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-hdmi-dma.c b/sound/soc/fsl/imx-hdmi-dma.c
index d0e907a07790..8f3e79845fa6 100644
--- a/sound/soc/fsl/imx-hdmi-dma.c
+++ b/sound/soc/fsl/imx-hdmi-dma.c
@@ -447,7 +447,7 @@ static void hdmi_dma_data_copy(struct snd_pcm_substream *substream,
447 447
448 appl_bytes = frames_to_bytes(runtime, runtime->status->hw_ptr); 448 appl_bytes = frames_to_bytes(runtime, runtime->status->hw_ptr);
449 if (type == 'p') 449 if (type == 'p')
450 appl_bytes += 8 * priv->period_bytes; 450 appl_bytes += 2 * priv->period_bytes;
451 offset = appl_bytes % priv->buffer_bytes; 451 offset = appl_bytes % priv->buffer_bytes;
452 452
453 switch (type) { 453 switch (type) {