ASoC: cs42l42: Implement 'set_bclk_ratio'
authorMartin Povišer <povik+lin@cutebit.org>
Thu, 15 Sep 2022 09:44:43 +0000 (11:44 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 19 Sep 2022 17:05:36 +0000 (18:05 +0100)
commitab2940a72dfa823af09abf593512459afe3da460
treef6180b9ead16d39bb7e6f32e1cedf041124a946c
parent94d5f62a91aab6ac9c3f4abfd048cbe5f77153ac
ASoC: cs42l42: Implement 'set_bclk_ratio'

The driver wants to know the bit rate on the serial bus and takes that
to be the value set by 'set_sysclk'. The 'set_bclk_ratio' op is a better
fit for figuring out the clocking parameters of the serial bus, so
implement that and give it precedence over the prior methods.

Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220915094444.11434-11-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c
sound/soc/codecs/cs42l42.h