ASoC: fsl_sai: fix Rx synchrounous mode
authorStefan Agner <stefan@agner.ch>
Tue, 20 Oct 2015 00:42:23 +0000 (17:42 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 26 Oct 2015 07:35:14 +0000 (16:35 +0900)
commit3cc7780b6fc04318ab08d84f739503989200cf55
treea26cbdc6479b357d9222f8ee3b82391fa515df2b
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
ASoC: fsl_sai: fix Rx synchrounous mode

When using the Rx clock for both, transmitter and receiver, the
transmitter needs to be set to synchronous with receiver.

This reverts 855675f6e6a6 ("ASoC: fsl_sai: Set SYNC bit of TCR2 to
Asynchronous Mode"), which, judiging from the commit log, seems to
mixed up between the two synchronous modes: The boolean
sai->synchronous[TX] is indicating wheather the SAI should work in
Rx synchronous mode (sync Tx with Rx), hence if the value is true,
the SYNC field of TCR2 needs to be set to 0x1 ("Synchronous with
receiver").

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c