ASoC: wm8960: Read initial MCLK rate from clock API
authorMark Brown <broonie@kernel.org>
Mon, 31 Jul 2023 10:47:02 +0000 (11:47 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 31 Jul 2023 15:12:46 +0000 (16:12 +0100)
commit0169cc3f200cbd737a57592fc478b24ff3cec3c5
treef5594f990a4ab6657347ceba2537bbae4a820339
parent2cddb06cb020f02a69e4e065599c1e5aa8b4a5d1
ASoC: wm8960: Read initial MCLK rate from clock API

When we have a MCLK provided by the clock API read the rate at startup
and store it so that there's something set before the machine driver has
done clocking configuration (eg, if it only configures clocking based on
sample rate).

Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230731-asoc-wm8960-clk-v1-1-69f9ffa2b10a@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8960.c