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

Commit bca041b4 authored by Yeleswarapu, Nagaradhesh's avatar Yeleswarapu, Nagaradhesh
Browse files

ASoC: wcd9xxx: Enable MBHC_MUX_MODE when polling is active



MBHC_MUX_MODE is required for Button detection, so do not
disable this bit when polling is still active.

CRs-Fixed: 554884
Change-Id: I9c6e3fe8dd1cc1b1aa15f6c12d139af5f9284296
Signed-off-by: default avatarYeleswarapu, Nagaradhesh <nagaradh@codeaurora.org>
parent f5edc513
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -4196,9 +4196,10 @@ static int wcd9xxx_event_notify(struct notifier_block *self, unsigned long val,
			   (1 << MBHC_EVENT_PA_HPHL | 1 << MBHC_EVENT_PA_HPHR))
				wcd9xxx_switch_micbias(mbhc, 1);
			/*
			 * Disable MBHC TxFE, in case it was enabled
			 * earlier when micbias was enabled.
			 * Disable MBHC TxFE, in case it was enabled earlier
			 * when micbias was enabled and polling is not active.
			 */
			if (!mbhc->polling_active)
				wcd9xxx_enable_mbhc_txfe(mbhc, false);
		}
		break;