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

Commit 4a7037e0 authored by Laxminath Kasam's avatar Laxminath Kasam Committed by David Keitel
Browse files

ASoC: wcd-mbhc: initialize boolean flag anc_mic_found



As anc_mic_found is not initialized, it is taking
input as true and report as ANC Headphone results
in wrong accessory detection. Initialize the flag
to false that fixes the issue.

Change-Id: I1c9912e2ab396a8a0a31065b826d6f92a0603215
Signed-off-by: default avatarLaxminath Kasam <lkasam@codeaurora.org>
parent b7df8c42
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -784,7 +784,7 @@ exit:
static void wcd_mbhc_find_plug_and_report(struct wcd_mbhc *mbhc,
					 enum wcd_mbhc_plug_type plug_type)
{
	bool anc_mic_found;
	bool anc_mic_found = false;
	enum snd_jack_types jack_type;

	pr_debug("%s: enter current_plug(%d) new_plug(%d)\n",