]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm8741: Fix setting BCLK and LRCLK polarity
authorSergej Sawazki <sergej@taudac.com>
Fri, 3 Nov 2017 18:34:28 +0000 (19:34 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 3 Nov 2017 18:46:40 +0000 (18:46 +0000)
commit9697527f989d00859b1547e0529925b4e5f07f1f
tree575e3406f099ea7d4636146d37e871c94e0af9fa
parent3f40ab566880fe6f0768e8ff3dc4d4e5fe647549
ASoC: wm8741: Fix setting BCLK and LRCLK polarity

After checking the code and the datasheet, it seems like we are handling
the clock inversion (SND_SOC_DAIFMT_NB_IF and SND_SOC_DAIFMT_IB_IF) not
correctly.

>From the datasheet (Table 58):
R5 Format Control, BITS[5:4], [BCP:LRP]:
  (0) 00 =  normal   BCLK, normal   LRCLK
  (1) 01 =  normal   BCLK, inverted LRCLK <-- Fix this
  (2) 10 =  inverted BCLK, normal   LRCLK
  (3) 11 =  inverted BCLK, inverted LRCLK <-- Fix this

Signed-off-by: Sergej Sawazki <sergej@taudac.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8741.c