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

Commit f5a57c2f authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: wcd9330: Notify MBHC as soon as HPH PA is turned off



Sometimes it is observed that MBHC driver re-enables
PA even though HPH PA event triggered by DAPM turns
off the PAs. This would cause over current circuit
to trigger and audio get muted. To avoid this notify
MBHC immediately after the PAs are turned off without
waiting for the Click and Pop time of 5milli-seconds.

Change-Id: Id0d5de5561490bbbb7dc8c18baab0c311eb93b3b
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent ce483cbe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4329,12 +4329,12 @@ static int tomtom_hph_pa_event(struct snd_soc_dapm_widget *w,
		break;

	case SND_SOC_DAPM_POST_PMD:
		/* Let MBHC module know PA turned off */
		wcd9xxx_resmgr_notifier_call(&tomtom->resmgr, e_post_off);
		usleep_range(pa_settle_time, pa_settle_time + 1000);
		pr_debug("%s: sleep %d us after %s PA disable\n", __func__,
				pa_settle_time, w->name);

		/* Let MBHC module know PA turned off */
		wcd9xxx_resmgr_notifier_call(&tomtom->resmgr, e_post_off);
		break;
	}
	return 0;