diff options
author | Laxminath Kasam <lkasam@codeaurora.org> | 2015-12-21 16:11:58 +0530 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 21:15:56 -0700 |
commit | 4a7037e0f888dd55435ced07d424ca191f42e84c (patch) | |
tree | bcc68f9d4c23736fc3003374cc4a91632d6fb12c /sound/soc/codecs | |
parent | b7df8c422ec511f3a92f27dc9da5ea2f29f2d20f (diff) |
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>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/wcd-mbhc-v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wcd-mbhc-v2.c b/sound/soc/codecs/wcd-mbhc-v2.c index ade9c704ea48..96267ffa99ec 100644 --- a/sound/soc/codecs/wcd-mbhc-v2.c +++ b/sound/soc/codecs/wcd-mbhc-v2.c @@ -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", |