ASoC: msm8960/mdm9615/apq8064: Fix codec clock disabling sequence
Notify codec driver prior to external clock disabling so codec driver
won't have period that doesn't have clock source without awareness.
This fixes incorrect mbhc operation and slimbus overflow.
Change-Id: I44c8c940ceda768205a30fa7a6688c4468ded69d
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
diff --git a/sound/soc/msm/mdm9615.c b/sound/soc/msm/mdm9615.c
index b122f64..758ad94 100644
--- a/sound/soc/msm/mdm9615.c
+++ b/sound/soc/msm/mdm9615.c
@@ -336,8 +336,8 @@
if (!clk_users) {
pr_debug("%s: disabling MCLK. clk_users = %d\n",
__func__, clk_users);
- clk_disable(codec_clk);
tabla_mclk_enable(codec, 0, dapm);
+ clk_disable(codec_clk);
}
}
return 0;