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

Commit c49a9d54 authored by Ramprasad Katkam's avatar Ramprasad Katkam
Browse files

asoc: wcd937x: Reset mbhc detection type after ssr



If headset is connected during SSR, after recovery mbhc
driver expects a new detection event as the driver is reinitialized.
Reset detection type to insertion to retrigger a hw interrupt
for mbhc driver.

Change-Id: I55705eb6b6a289deb5dc16a4b9ef6252082a3d9a
Signed-off-by: default avatarRamprasad Katkam <katkam@codeaurora.org>
parent 662dec1e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -976,6 +976,8 @@ int wcd937x_mbhc_post_ssr_init(struct wcd937x_mbhc *mbhc,

	wcd937x_mbhc_hs_detect_exit(codec);
	wcd_mbhc_deinit(wcd_mbhc);
	snd_soc_update_bits(codec, WCD937X_ANA_MBHC_MECH,
				0x20, 0x20);
	ret = wcd_mbhc_init(wcd_mbhc, codec, &mbhc_cb, &intr_ids,
			    wcd_mbhc_registers, WCD937X_ZDET_SUPPORTED);
	if (ret) {