Browse Source

asoc: codecs: stop mbhc before mbhc init and after ssr

In SSR init call stop mbhc before initializing mbhc
again, so that usbc analog deregisters the callback
with PMI notifier.

CRs-fixed: 2128532
Change-Id: I329f25172b5cc2d80b93918787f703d89c95062f
Signed-off-by: Karthikeyan Mani <[email protected]>
Karthikeyan Mani 7 years ago
parent
commit
776b1b32c2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      asoc/codecs/wcd934x/wcd934x-mbhc.c

+ 1 - 0
asoc/codecs/wcd934x/wcd934x-mbhc.c

@@ -1043,6 +1043,7 @@ int tavil_mbhc_post_ssr_init(struct wcd934x_mbhc *mbhc,
 		return -EINVAL;
 	}
 
+	tavil_mbhc_hs_detect_exit(codec);
 	wcd_mbhc_deinit(wcd_mbhc);
 	ret = wcd_mbhc_init(wcd_mbhc, codec, &mbhc_cb, &intr_ids,
 			    wcd_mbhc_registers, TAVIL_ZDET_SUPPORTED);