ASoC: ti: osk5912: Make it CCF clk API compatible
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Thu, 7 Apr 2022 19:12:02 +0000 (21:12 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 12 Apr 2022 20:08:10 +0000 (21:08 +0100)
The driver, OMAP1 specific, now omits clk_prepare/unprepare() steps, not
supported by OMAP1 custom implementation of clock API.  However, non-CCF
stubs of those functions exist for use on such platforms until converted
to CCF.

Update the driver to be compatible with CCF implementation of clock API.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20220407191202.46206-1-jmkrzyszt@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/osk5912.c

index 40e29dda7e7a74f336701b76357430552781268f..2790c8915f5523b6badfe1af099f7c869a5f681a 100644 (file)
@@ -27,12 +27,12 @@ static struct clk *tlv320aic23_mclk;
 
 static int osk_startup(struct snd_pcm_substream *substream)
 {
-       return clk_enable(tlv320aic23_mclk);
+       return clk_prepare_enable(tlv320aic23_mclk);
 }
 
 static void osk_shutdown(struct snd_pcm_substream *substream)
 {
-       clk_disable(tlv320aic23_mclk);
+       clk_disable_unprepare(tlv320aic23_mclk);
 }
 
 static int osk_hw_params(struct snd_pcm_substream *substream,