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

Commit d1ffd16b 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 f77c08ce 849ebb85
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1376,8 +1376,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);

	/*