]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00306875-1 Revert "ENGR00305624-2 ASoC: imx-hdmi-dma: Correct the appl pointer"
authorNicolin Chen <Guangyu.Chen@freescale.com>
Thu, 3 Apr 2014 07:52:14 +0000 (15:52 +0800)
committerNicolin Chen <Guangyu.Chen@freescale.com>
Thu, 3 Apr 2014 13:00:28 +0000 (21:00 +0800)
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>
sound/soc/fsl/imx-hdmi-dma.c

index d0e907a07790efe07471e22443fbc9572338e162..8f3e79845fa643b88df2a8f9f7370ef202beed7c 100644 (file)
@@ -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) {