]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4e99e0dc3859993923c0c36b3f441740ea8c5863
tree819824fabbdf3b11bcf9277e7bbd5cb9309005a6
parentf73e3bedcb7a4879cfc4646c007eb97fa0f0d92a
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