summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolin Chen <Guangyu.Chen@freescale.com>2014-04-03 15:52:14 +0800
committerNicolin Chen <Guangyu.Chen@freescale.com>2014-04-03 21:00:28 +0800
commitcb6cd68b00fbb52852101ca2f3bc93ae45310b66 (patch)
tree421287d89ed656cc110a06813507aec5fd312bdc
parenta7ff04798634d5323d865232b71cad6aa252cd1b (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>
-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,
appl_bytes = frames_to_bytes(runtime, runtime->status->hw_ptr);
if (type == 'p')
- appl_bytes += 8 * priv->period_bytes;
+ appl_bytes += 2 * priv->period_bytes;
offset = appl_bytes % priv->buffer_bytes;
switch (type) {