]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00219931 ESAI ASRC: fix channel swap bug while playback 6 channel
authorChen Liangjun <b36089@freescale.com>
Thu, 16 Aug 2012 09:14:37 +0000 (17:14 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:43 +0000 (14:12 +0200)
commit6998c2f6b44cbb1ce909a539c14e6acf5bd178e9
tree1c17bcf2e590be97ceb9aedf76ef1b87cc35e094
parent9f431313cdafb6db61903a77b9271111ce9415e6
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>
drivers/mxc/asrc/mxc_asrc.c
sound/soc/imx/imx-pcm-dma-mx2.c