OSDN Git Service

ASoC: codecs: ad193x: Fix frame polarity for DSP_A format
authorCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
Mon, 18 Feb 2019 16:10:32 +0000 (16:10 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 18 Feb 2019 17:41:16 +0000 (17:41 +0000)
commit90f6e68031397fb6212bef5619193cd15707fa0f
tree819824fabbdf3b11bcf9277e7bbd5cb9309005a6
parent75c2ecb4bda296f89d4ea6a42750f48bfcd8a1d9
ASoC: codecs: ad193x: Fix frame polarity for DSP_A format

By default, the codec starts to interpret the left (first) channel on
the falling edge (low polarity) of LRCLK. However, for DSP_A, the left
channel needs to start on the rising edge of LRCLK. This patch fixes
this channel swap by toggling the bit which selects the LRCLK polarity.

Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ad193x.c