]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: arizona: Update arizona_aif_cfg_changed to use RX_BCLK_RATE
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 28 Jun 2022 15:34:09 +0000 (16:34 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 7 Jul 2022 16:16:28 +0000 (17:16 +0100)
commite125a9855d22f25939f25b0e1f832611b13ce100
tree2fde83753e0bc0922b2899c55c643b539ee5a5be
parent8a2629768330d70f7d7cc31f2783361434a0fb40
ASoC: arizona: Update arizona_aif_cfg_changed to use RX_BCLK_RATE

Currently the function arizona_aif_cfg_changed uses the TX_BCLK_RATE,
however this register is not used on wm8998. This was not noticed as
previously snd_soc_component_read did not print an error message.
However, now the log gets filled with error messages, further more the
test for if the LRCLK changed will return spurious results.

Update the code to use the RX_BCLK_RATE register, the LRCLK parameters
are written to both registers and the RX_BCLK_RATE register is used
across all Arizona devices.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220628153409.3266932-4-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/arizona.c