summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/tlv320aic32x4-clk.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-10-09 15:42:29 +0100
committerMark Brown <broonie@kernel.org>2020-10-09 15:42:29 +0100
commit7ffe09eebf732f9c95623613fb706dada858c07d (patch)
treebb0a95696fe42eb13908ba1e7a1e8ea653f9eb68 /sound/soc/codecs/tlv320aic32x4-clk.c
parent549738f15da0e5a00275977623be199fbbf7df50 (diff)
parentebb11d1d9fe2d6b4a47755f7f09b2b631046e308 (diff)
Merge remote-tracking branch 'asoc/for-5.9' into asoc-linus
Diffstat (limited to 'sound/soc/codecs/tlv320aic32x4-clk.c')
-rw-r--r--sound/soc/codecs/tlv320aic32x4-clk.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sound/soc/codecs/tlv320aic32x4-clk.c b/sound/soc/codecs/tlv320aic32x4-clk.c
index 156c153c12ab..2f78e6820c75 100644
--- a/sound/soc/codecs/tlv320aic32x4-clk.c
+++ b/sound/soc/codecs/tlv320aic32x4-clk.c
@@ -230,7 +230,14 @@ static int clk_aic32x4_pll_set_rate(struct clk_hw *hw,
if (ret < 0)
return -EINVAL;
- return clk_aic32x4_pll_set_muldiv(pll, &settings);
+ ret = clk_aic32x4_pll_set_muldiv(pll, &settings);
+ if (ret)
+ return ret;
+
+ /* 10ms is the delay to wait before the clocks are stable */
+ msleep(10);
+
+ return 0;
}
static int clk_aic32x4_pll_set_parent(struct clk_hw *hw, u8 index)