MLK-11948: ASoC: fsl_esai: fix the channel swap issue after bootup
authorShengjiu Wang <shengjiu.wang@freescale.com>
Thu, 3 Dec 2015 02:47:05 +0000 (10:47 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:28 +0000 (14:49 -0500)
commitdd379656a052e9261cabdbaa948ae779805af0cd
treea2a4cd6da66b36d8e4ba669abaf0e0c1a12c91e5
parentc78e3c009f808c0977617ef62c0bf32c8a5e18b1
MLK-11948: ASoC: fsl_esai: fix the channel swap issue after bootup

Patch 11626b6a79e27c716f3731b7dc2208631afbc665 is not a complete workaround.

The complete workaround is that: Each time playback/recording, firstly clear
the xSMA/xSMB, then enable TE/RE, then enable xSMB and xSMA (xSMB must be
enabled before xSMA).

Because the xSMA and xSMB is in enabled state after reset, so in original fix
the first time playback/recording after bootup, didn't follow the workaround
flow. There maybe still have channel swap issue.

The PDM ticket of this issue is TKT251104.

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