summaryrefslogtreecommitdiffstats
path: root/sound/soc/mediatek
diff options
context:
space:
mode:
authorTzung-Bi Shih2019-03-07 03:35:58 +0100
committerMark Brown2019-03-18 15:43:24 +0100
commit9729e3b65a64dfe210972223624d8152ba502e98 (patch)
tree4e875a573a12659108449e13ac0c92361e6b2d1b /sound/soc/mediatek
parentMerge tag 'v5.1-rc1' into asoc-5.1 (diff)
downloadkernel-qcow2-linux-9729e3b65a64dfe210972223624d8152ba502e98.tar.gz
kernel-qcow2-linux-9729e3b65a64dfe210972223624d8152ba502e98.tar.xz
kernel-qcow2-linux-9729e3b65a64dfe210972223624d8152ba502e98.zip
ASoC: mediatek: mt8183: skip for i2s5 in mck_disable
Skip for i2s5 in mck_disable which is also bypassed in mck_enable. Signed-off-by: Tzung-Bi Shih <tzungbi@google.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek')
-rw-r--r--sound/soc/mediatek/mt8183/mt8183-afe-clk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/mediatek/mt8183/mt8183-afe-clk.c b/sound/soc/mediatek/mt8183/mt8183-afe-clk.c
index f523ad103acc..48e81c5d52fc 100644
--- a/sound/soc/mediatek/mt8183/mt8183-afe-clk.c
+++ b/sound/soc/mediatek/mt8183/mt8183-afe-clk.c
@@ -605,6 +605,10 @@ void mt8183_mck_disable(struct mtk_base_afe *afe, int mck_id)
int m_sel_id = mck_div[mck_id].m_sel_id;
int div_clk_id = mck_div[mck_id].div_clk_id;
+ /* i2s5 mck not support */
+ if (mck_id == MT8183_I2S5_MCK)
+ return;
+
clk_disable_unprepare(afe_priv->clk[div_clk_id]);
if (m_sel_id >= 0)
clk_disable_unprepare(afe_priv->clk[m_sel_id]);