[alsa-devel] [PATCH 1/4] ASoC: rsnd: call clk_prepare()/clk_enable() for AUDIO_CLKx

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Wed Nov 4 09:42:53 CET 2015


From: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>

ADG can output AUDIO_CLKOUTx, and these are generated from
AUDIO_CLKx. Thus we need to call clk_prepare()/clk_enable()
for AUDIO_CLKx.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
 sound/soc/sh/rcar/adg.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c
index 2a5b3a2..107812d 100644
--- a/sound/soc/sh/rcar/adg.c
+++ b/sound/soc/sh/rcar/adg.c
@@ -425,8 +425,11 @@ static void rsnd_adg_get_clkin(struct rsnd_priv *priv,
 		adg->clk[i] = IS_ERR(clk) ? NULL : clk;
 	}
 
-	for_each_rsnd_clk(clk, adg, i)
+	for_each_rsnd_clk(clk, adg, i) {
+		clk_prepare(clk);
+		clk_enable(clk);
 		dev_dbg(dev, "clk %d : %p : %ld\n", i, clk, clk_get_rate(clk));
+	}
 }
 
 static void rsnd_adg_get_clkout(struct rsnd_priv *priv,
-- 
1.9.1



More information about the Alsa-devel mailing list