ASoC: simple-scu-card: use asoc_simple_card_clk_xxx()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 9 Jun 2017 00:44:40 +0000 (00:44 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 13 Jun 2017 20:57:54 +0000 (21:57 +0100)
Current simple-card-utils sets asoc_simple_dai::clk via
asoc_simple_card_parse_clk().
Current simple card drivers are using it directly for
clk_enable/disable.
Encapsulation is one of simple card util's purpose.
Let's use asoc_simple_card_clk_enable/disable.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/simple-scu-card.c

index 5faf5d6c48a2f89f7697be11bcbdb7b3f8390bb9..f203783b2fade240065434f66a6d2a22e302adca 100644 (file)
@@ -47,7 +47,7 @@ static int asoc_simple_card_startup(struct snd_pcm_substream *substream)
        struct asoc_simple_dai *dai_props =
                simple_priv_to_props(priv, rtd->num);
 
-       return clk_prepare_enable(dai_props->clk);
+       return asoc_simple_card_clk_enable(dai_props);
 }
 
 static void asoc_simple_card_shutdown(struct snd_pcm_substream *substream)
@@ -57,7 +57,7 @@ static void asoc_simple_card_shutdown(struct snd_pcm_substream *substream)
        struct asoc_simple_dai *dai_props =
                simple_priv_to_props(priv, rtd->num);
 
-       clk_disable_unprepare(dai_props->clk);
+       asoc_simple_card_clk_disable(dai_props);
 }
 
 static const struct snd_soc_ops asoc_simple_card_ops = {