Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec24d856 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 7378260d 7544634c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);

	/*