mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
ASoC: wcd-mbhc: Disable moisture detect threshold if duty cycle disabled
Moisture detection is not disabled properly if threshold remains set as 24k even if duty cycle is disabled. This is leading into headset not getting detected sometimes. Disable threshold as well if duty cycle disabled. Change-Id: Ic90c65d8bbaa965cf147f95edf5add8980889e1f Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
This commit is contained in:
parent
d155d7f509
commit
7544634ca6
1 changed files with 1 additions and 2 deletions
|
|
@ -1419,8 +1419,7 @@ static int wcd_mbhc_initialise(struct wcd_mbhc *mbhc)
|
|||
if (mbhc->mbhc_cfg->moisture_en && mbhc->mbhc_cb->mbhc_moisture_config
|
||||
&& !mbhc->mbhc_cfg->moisture_duty_cycle_en)
|
||||
mbhc->mbhc_cb->mbhc_moisture_config(mbhc);
|
||||
else if (mbhc->mbhc_cfg->moisture_duty_cycle_en &&
|
||||
mbhc->mbhc_cb->mbhc_moisture_detect_en)
|
||||
else if (mbhc->mbhc_cb->mbhc_moisture_detect_en)
|
||||
mbhc->mbhc_cb->mbhc_moisture_detect_en(mbhc, false);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue