From 34a815fea383132ed3f4eedf02c0e473098d1e18 Mon Sep 17 00:00:00 2001 From: Prasad Kumpatla Date: Wed, 21 Feb 2024 21:44:51 +0530 Subject: [PATCH] aosc: codec: wcd9378: call swr disconnect in PMD Clk vote is present after teardown the usecase. which is impacting the power, in SND_PMD call swr disconnect to avoid clk votes. Change-Id: I94d1ab9dc19a62132033a5715d4212dbcb7d2b0b Signed-off-by: Prasad Kumpatla --- asoc/codecs/wcd9378/wcd9378.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asoc/codecs/wcd9378/wcd9378.c b/asoc/codecs/wcd9378/wcd9378.c index 6cedf7c20b..c9432a40d2 100644 --- a/asoc/codecs/wcd9378/wcd9378.c +++ b/asoc/codecs/wcd9378/wcd9378.c @@ -1275,7 +1275,7 @@ static int wcd9378_codec_enable_micbias_pullup(struct snd_soc_dapm_widget *w, break; case SND_SOC_DAPM_POST_PMD: wcd9378_micbias_control(component, tx_num, - MICB_PULLUP_ENABLE, true); + MICB_PULLUP_DISABLE, true); break; }; @@ -1950,7 +1950,7 @@ static int wcd9378_codec_aux_dac_event(struct snd_soc_dapm_widget *w, } else { snd_soc_component_update_bits(component, WCD9378_CDC_AUX_GAIN_CTL, WCD9378_CDC_AUX_GAIN_CTL_AUX_EN_MASK, 0x00); - wcd9378_rx_connect_port(component, LO, true); + wcd9378_rx_connect_port(component, LO, false); } break; };