[alsa-devel] [PATCH] ASoC: rsnd: fix src clock prepare/unprepare
Ben Dooks
ben.dooks at codethink.co.uk
Fri Mar 28 16:03:17 CET 2014
As with the previous commit, before a clock can be used it must be prepared
for use. Change from clk_enable() and clk_disable() to the versions of the
calls which also prepare and un-prepare the clocks.
Will fix warnings from the clock code when this is used.
Signed-off-by: Ben Dooks <ben.dooks at codethink.co.uk>
---
sound/soc/sh/rcar/scu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/sh/rcar/scu.c b/sound/soc/sh/rcar/scu.c
index 9153a11..3b1d1d2 100644
--- a/sound/soc/sh/rcar/scu.c
+++ b/sound/soc/sh/rcar/scu.c
@@ -284,7 +284,7 @@ static int rsnd_scu_start(struct rsnd_mod *mod,
return 0;
}
- clk_enable(scu->clk);
+ clk_prepare_enable(scu->clk);
/* it use DMA transter */
@@ -317,7 +317,7 @@ static int rsnd_scu_stop(struct rsnd_mod *mod,
rsnd_scu_transfer_stop(priv, mod, rdai, io);
- clk_disable(scu->clk);
+ clk_disable_unprepare(scu->clk);
return 0;
}
--
1.9.0
More information about the Alsa-devel
mailing list