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:

committed by
Gerrit - the friendly Code Review server

parent
d155d7f509
commit
7544634ca6
@@ -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);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user