Merge "ASoC: wcd-mbhc: Disable moisture detect threshold if duty cycle disabled"

This commit is contained in:
qctecmdr 2020-04-26 23:42:49 -07:00 • committed by Gerrit - the friendly Code Review server
commit ec24d856d7

View file

@ -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);
/*