ASoC: wcd9320: Fix HPHL DAC path disable sequence
When headset is removed codec driver clears the dac_ref_en bit, which
causes the DAPM framework to keep HPHL DAC path connected.
This change returns the ownership of clearing the dac_ref_en bit to DAPM
framework and fixes the HPHL DAC path disablement issue when headset is
removed.
CRs-fixed: 423077
Change-Id: I37c53a44a5b93339b4790d889991437fff7f4a93
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
diff --git a/sound/soc/codecs/wcd9xxx-mbhc.c b/sound/soc/codecs/wcd9xxx-mbhc.c
index 8410d56..f2add19 100644
--- a/sound/soc/codecs/wcd9xxx-mbhc.c
+++ b/sound/soc/codecs/wcd9xxx-mbhc.c
@@ -554,7 +554,7 @@
set_bit(WCD9XXX_HPHR_DAC_OFF_ACK, &mbhc->hph_pa_dac_state);
snd_soc_update_bits(codec, WCD9XXX_A_RX_HPH_CNP_EN, 0x30, 0x00);
- snd_soc_update_bits(codec, WCD9XXX_A_RX_HPH_L_DAC_CTL, 0xC0, 0x00);
+ snd_soc_update_bits(codec, WCD9XXX_A_RX_HPH_L_DAC_CTL, 0x80, 0x00);
snd_soc_update_bits(codec, WCD9XXX_A_RX_HPH_R_DAC_CTL, 0xC0, 0x00);
usleep_range(wg_time * 1000, wg_time * 1000);
}