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: Laxminath Kasam <lkasam@codeaurora.org>
This commit is contained in:
Laxminath Kasam 2015-12-21 16:11:58 +05:30 committed by David Keitel
parent b7df8c422e
commit 4a7037e0f8

View file

@ -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",