]> git.karo-electronics.de Git - linux-beck.git/commitdiff
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)
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>

No differences found