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

Commit 4287b076 authored by Meng Wang's avatar Meng Wang Committed by Yeleswarapu Nagaradhesh
Browse files

ASoC: wcd: disable FSM when headset type is none



disable FSM when headset type is none. This fixes
headset is not detected anymore after several insertions.

CRs-Fixed: 660530
Change-Id: I45a930a70b8647f733d2624f31059fc10a37ba1c
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
parent 00ceb0ee
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -823,7 +823,13 @@ static void wcd_mbhc_swch_irq_handler(struct wcd_mbhc *mbhc)
					mbhc->intr_ids->mbhc_hs_ins_rem_intr);
		}

	} else if (!detection_type) {
		/* Disable HW FSM */
		snd_soc_update_bits(codec,
				MSM8X16_WCD_A_ANALOG_MBHC_FSM_CTL,
				0xB0, 0x00);
	}

	mbhc->in_swch_irq_handler = false;
	WCD_MBHC_RSC_UNLOCK(mbhc);
	pr_debug("%s: leave\n", __func__);