Browse Source

Merge "asoc: wcd938x: Reset mbhc detection type after ssr"

qctecmdr 5 years ago
parent
commit
f9edb75340
1 changed files with 3 additions and 0 deletions
  1. 3 0
      asoc/codecs/wcd938x/wcd938x-mbhc.c

+ 3 - 0
asoc/codecs/wcd938x/wcd938x-mbhc.c

@@ -1009,6 +1009,9 @@ int wcd938x_mbhc_post_ssr_init(struct wcd938x_mbhc *mbhc,
 		return -EINVAL;
 	}
 
+	/* Reset detection type to insertion after SSR recovery */
+	snd_soc_component_update_bits(component, WCD938X_ANA_MBHC_MECH,
+				0x20, 0x20);
 	ret = wcd_mbhc_init(wcd_mbhc, component, &mbhc_cb, &intr_ids,
 			    wcd_mbhc_registers, WCD938X_ZDET_SUPPORTED);
 	if (ret) {