summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChen Liangjun <b36089@freescale.com>2012-08-16 17:14:37 +0800
committerChen Liangjun <b36089@freescale.com>2012-08-16 18:20:08 +0800
commit72b2444cbe32f2b7bf7c99323a1dd5d3b34e9098 (patch)
tree1c17bcf2e590be97ceb9aedf76ef1b87cc35e094 /drivers
parent4c22c9922e81904410d8f97065a267dee7b99380 (diff)
ENGR00219931 ESAI ASRC: fix channel swap bug while playback 6 channel
Channel swap caused by 2 reason: 1. To avoid ASRC underflow error, ASRC driver would prefill ASRC input FIFO with 160 samples. However, 160 can't be divided by 6. In this case, channel data miss alignment. In this patch, prefill ASRC input FIFO with 120, which can be divided by 2,4,6,8. 2. While start P2P playback, ESAI driver would first start SDMA, then ASRC, and last ESAI. While start ESAI, the data is not ready, thus ESAI underrun would happens and channel data miss alignment. In this patch, delay 1 ms between ASRC's start and ESAI's start. Signed-off-by: Chen Liangjun <b36089@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mxc/asrc/mxc_asrc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/mxc/asrc/mxc_asrc.c b/drivers/mxc/asrc/mxc_asrc.c
index cf41f2994226..ed3256906863 100644
--- a/drivers/mxc/asrc/mxc_asrc.c
+++ b/drivers/mxc/asrc/mxc_asrc.c
@@ -667,12 +667,6 @@ void asrc_start_conv(enum asrc_pair_index index)
__raw_writel(reg,
g_asrc->vaddr + ASRC_ASRDIA_REG +
(index << 3));
- __raw_writel(reg,
- g_asrc->vaddr + ASRC_ASRDIA_REG +
- (index << 3));
- __raw_writel(reg,
- g_asrc->vaddr + ASRC_ASRDIA_REG +
- (index << 3));
}
__raw_writel(0x40, g_asrc->vaddr + ASRC_ASRIER_REG);