OSDN Git Service

ASoC: cs42l42: Use snd_soc_tdm_params_to_bclk()
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Wed, 17 Aug 2022 12:23:47 +0000 (13:23 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 17 Aug 2022 12:58:50 +0000 (13:58 +0100)
commitc2683ecfd1850cc99829691b2e1d90f1a6d75b8b
treedff2ae5d5802a9bc068f7791d359bb3cfcb75ef9
parentdb568aab37c1af80057c12c97e6af049495c3e4a
ASoC: cs42l42: Use snd_soc_tdm_params_to_bclk()

Use the new snd_soc_tdm_params_to_bclk() helper function to
calculate the bclk. This function handles most of the previous
manipulation and makes the code tidier.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220817122347.1356773-6-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c