ASoC: cs42l42: Use bclk from hw_params if set_sysclk was not called
authorLucas Tanure <tanureal@opensource.cirrus.com>
Sat, 6 Mar 2021 18:55:50 +0000 (18:55 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 13:14:28 +0000 (13:14 +0000)
commit2cdba9b045c745139ae56227d71f261f5d3c6fae
tree11b8ac829aa7a030ddbe74f889679ccc8399e642
parentc5b8ee0879bcdc5082d42fe92d3c235b74feef37
ASoC: cs42l42: Use bclk from hw_params if set_sysclk was not called

Add support for reading the source clock from snd_soc_params_to_bclk
so the machine driver is not required to call cs42l42_set_sysclk

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210306185553.62053-13-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c
sound/soc/codecs/cs42l42.h