浏览代码

asoc: wcd-mbhc: disable button current source after removal

After headset removal disable button current source
to not have any voltages output in micbias after
headset removal from extension cable.

Change-Id: I2a751c16c704176381bb26f375aebf351686e911
Signed-off-by: Karthikeyan Mani <[email protected]>
Karthikeyan Mani 7 年之前
父节点
当前提交
6bcd94a7ce
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      asoc/codecs/wcd-mbhc-adc.c

+ 1 - 0
asoc/codecs/wcd-mbhc-adc.c

@@ -996,6 +996,7 @@ static irqreturn_t wcd_mbhc_adc_hs_rem_irq(int irq, void *data)
 		WCD_MBHC_REG_UPDATE_BITS(WCD_MBHC_ADC_MODE, 0);
 		WCD_MBHC_REG_UPDATE_BITS(WCD_MBHC_ADC_EN, 0);
 		wcd_mbhc_elec_hs_report_unplug(mbhc);
+		WCD_MBHC_REG_UPDATE_BITS(WCD_MBHC_BTN_ISRC_CTL, 0);
 
 		if (hphpa_on) {
 			hphpa_on = false;