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

Commit 6db3939d authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

ASoC: wcd934x: Fix fake button press for headset insertion



Fix fake button press when headset is inserted by properly
disabling micbias after the detection is completed.

CRs-Fixed: 1086418
Change-Id: I241a49dd36746c083b410a58c8c899ee0e9390ad
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 30b895d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4182,7 +4182,7 @@ int tavil_micbias_control(struct snd_soc_codec *codec,
					post_dapm_on, &tavil->mbhc->wcd_mbhc);
		break;
	case MICB_DISABLE:
		if (tavil->pullup_ref[micb_index] > 0)
		if (tavil->micb_ref[micb_index] > 0)
			tavil->micb_ref[micb_index]--;
		if ((tavil->micb_ref[micb_index] == 0) &&
		    (tavil->pullup_ref[micb_index] > 0))