ASoC: imx-ssi: Fix DAI hardware signal inversions
authorBenoît Thébaudeau <benoit@wsystem.com>
Tue, 29 Sep 2015 15:59:14 +0000 (17:59 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 29 Sep 2015 16:28:33 +0000 (17:28 +0100)
commitb7b01d345b83602a42b6ff02cacb9d9ada5ecd0a
treee39569eef86c3634caee44909a453d14503a3447
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
ASoC: imx-ssi: Fix DAI hardware signal inversions

SND_SOC_DAIFMT_{IB|NB}_{IF|NF} are defined as inverting or not BCLK or
FRM relatively to what is standard for the specified DAI hardware audio
format. Consequently, the absolute polarities of these signals cannot be
derived only from these settings as this driver did. The format has to
be taken into account too.

This fixes inverted left/right channels in I²S mode.

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-ssi.c