]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tlv320aic31xx: fix reversed bclk/wclk master bits
authorKyle Russell <bkylerussell@gmail.com>
Tue, 22 Jun 2021 01:09:41 +0000 (21:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Aug 2021 07:04:07 +0000 (09:04 +0200)
commit768248fb623c70889191d8eed83959f44cb0e540
treec448c4609a60186bd2471b19dd41c44eb9c3a6d6
parent1469e9b9a502af489c0a7518220273f049f66148
ASoC: tlv320aic31xx: fix reversed bclk/wclk master bits

[ Upstream commit 9cf76a72af6ab81030dea6481b1d7bdd814fbdaf ]

These are backwards from Table 7-71 of the TLV320AIC3100 spec [1].

This was broken in 5d1d142c008c when BCLK_MASTER and WCLK_MASTER
were converted from 0x08 and 0x04 to BIT(2) and BIT(3), respectively.

-#define AIC31XX_BCLK_MASTER 0x08
-#define AIC31XX_WCLK_MASTER 0x04
+#define AIC31XX_BCLK_MASTER BIT(2)
+#define AIC31XX_WCLK_MASTER BIT(3)

Probably just a typo since the defines were not listed in bit order.

[1] https://www.ti.com/lit/gpn/tlv320aic3100

Signed-off-by: Kyle Russell <bkylerussell@gmail.com>
Link: https://lore.kernel.org/r/20210622010941.241386-1-bkylerussell@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/tlv320aic31xx.h