Browse Source

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 <[email protected]>
Prasad Kumpatla 1 year ago
parent
commit
34a815fea3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      asoc/codecs/wcd9378/wcd9378.c

+ 2 - 2
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;
 	};