summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhani Kumar Uppalapati <phaniu@codeaurora.org>2017-01-10 16:31:35 -0800
committerPhani Kumar Uppalapati <phaniu@codeaurora.org>2017-01-16 18:56:37 -0800
commit58a3fb7798313e2b95dccde379a93c8d25a7f1f6 (patch)
treea540d3b6136a12c0bd4d8f9d5b7b5155277a723a
parent37c5f804a2e32623ddbe51e68c527bae7be81582 (diff)
ASoC: wcd934x: Fix headphone playback mute
Fix headphone playback mute issue by resetting the MCLK path register bits on wcd934x audio codec. CRs-Fixed: 1107335 Change-Id: I32dd3ba278467b3c0d37c867f6ae5a9fce9cfdb8 Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
-rw-r--r--sound/soc/codecs/wcd9xxx-resmgr-v2.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sound/soc/codecs/wcd9xxx-resmgr-v2.c b/sound/soc/codecs/wcd9xxx-resmgr-v2.c
index 84754b8d09b0..71edded182e0 100644
--- a/sound/soc/codecs/wcd9xxx-resmgr-v2.c
+++ b/sound/soc/codecs/wcd9xxx-resmgr-v2.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -247,9 +247,15 @@ static int wcd_resmgr_enable_clk_mclk(struct wcd9xxx_resmgr_v2 *resmgr)
* to CLK_SYS_MCLK_PRG
*/
wcd_resmgr_codec_reg_update_bits(resmgr,
+ WCD934X_CLK_SYS_MCLK_PRG, 0x91, 0x91);
+ wcd_resmgr_codec_reg_update_bits(resmgr,
WCD934X_CLK_SYS_MCLK_PRG, 0x02, 0x00);
wcd_resmgr_codec_reg_update_bits(resmgr,
- WCD934X_CLK_SYS_MCLK_PRG, 0x91, 0x91);
+ WCD934X_CLK_SYS_INT_CLK_TEST2, 0x04,
+ 0x04);
+ wcd_resmgr_codec_reg_update_bits(resmgr,
+ WCD934X_CLK_SYS_INT_CLK_TEST2, 0x04,
+ 0x00);
wcd_resmgr_codec_reg_update_bits(resmgr,
WCD93XX_CDC_CLK_RST_CTRL_FS_CNT_CONTROL,
0x01, 0x01);