OSDN Git Service

ASoC: wcd-mbhc: initialize boolean flag anc_mic_found
authorLaxminath Kasam <lkasam@codeaurora.org>
Mon, 21 Dec 2015 10:41:58 +0000 (16:11 +0530)
committerDavid Keitel <dkeitel@codeaurora.org>
Thu, 24 Mar 2016 04:15:56 +0000 (21:15 -0700)
commit4a7037e0f888dd55435ced07d424ca191f42e84c
treebcc68f9d4c23736fc3003374cc4a91632d6fb12c
parentb7df8c422ec511f3a92f27dc9da5ea2f29f2d20f
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>
sound/soc/codecs/wcd-mbhc-v2.c