]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9350217c97fc69141a2edf5307c61a65e30d75e6
treef6180b9ead16d39bb7e6f32e1cedf041124a946c
parentecb9befc56dfb4c15d64c8798c3b631c1bc64893
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