MLK-15039: ASoC: fsl_esai: Fix channels swap when recording 3 channels audio
authorMihai Serban <mihai.serban@nxp.com>
Thu, 8 Jun 2017 12:48:50 +0000 (15:48 +0300)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:28:10 +0000 (15:28 -0500)
commite768f762e08ffbaf0cbe60a4c586613d72222486
tree9d50659cd03cf3e31414deecaf4bd0128a0a5bba
parentcc4d9518436f2b78653da4ec3aa2462917b8cb47
MLK-15039: ASoC: fsl_esai: Fix channels swap when recording 3 channels audio

The change introduced by commit 00c174b3b28a
("MLK-14525: ASoC: fsl_esai: channel swap issue in 3 channels or 5 channels")
is no longer valid after improvements added with commit c35bc6ae5c48
("MLK-14778: ASoC: fsl: imx-cs42888: Improve support for odd number of channels")

Because we use TDM instead of I2S for 3,5 and 7 channels we must
initialize ESAI with the actual number of channels. There is no need
to count the additional channel required when I2S was used.

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
sound/soc/fsl/fsl_esai.c