MLK-14525: ASoC: fsl_esai: channel swap issue in 3 channels or 5 channels
authorShengjiu Wang <shengjiu.wang@freescale.com>
Thu, 13 Apr 2017 03:13:04 +0000 (11:13 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:54 +0000 (15:21 -0500)
commita3a22d7f772b37d01c34cb909b3c5c9f54e8387e
tree6fde2f54835f69a49f3531938f21b5094dd613eb
parent25a44312843e643d8f3b7971d0947467333c0dbc
MLK-14525: ASoC: fsl_esai: channel swap issue in 3 channels or 5 channels

In 3 channels, ESAI is set to I2S mode and two dataline, so actually
ESAI is working in 4 channels mode, (we can't get correct 3 channels,
for we can't make one dataline working in 2 channel, another dataline
working in 1 channels).

In this case, we fill channels (3) zero data to FIFO in start phase,
which should cause channel swap, that we need to fill 4 zero data to
FIFO for ESAI working in 4 channels mode actually.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
sound/soc/fsl/fsl_esai.c