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:
parent
b7df8c422e
commit
4a7037e0f8
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue