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

Commit 5e02a701 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: wcd9xxx: Disable current source in error scenarios"

parents 65ea13bc f882b8bf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2471,6 +2471,11 @@ static void wcd9xxx_mbhc_decide_swch_plug(struct wcd9xxx_mbhc *mbhc)
	}

	if (wcd9xxx_swch_level_remove(mbhc)) {
		if (current_source_enable && mbhc->is_cs_enabled) {
			wcd9xxx_turn_onoff_current_source(mbhc,
					&mbhc->mbhc_bias_regs,
					false, false);
		}
		pr_debug("%s: Switch level is low when determining plug\n",
			 __func__);
		return;