From ba1a97d976fd46453db87da3edc423a7fd16c790 Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Wed, 16 Sep 2020 22:50:17 -0700 Subject: [PATCH] Revert "ASoC: mbhc: Call impedance detection routine before get imped" This reverts commit 892efe8d09464c8a6c278365ab6fd5ffbbabae94. Change-Id: Ica020594b0470cd297cd84ca6b737bde8dce33f3 --- asoc/codecs/wcd-mbhc-v2.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/asoc/codecs/wcd-mbhc-v2.c b/asoc/codecs/wcd-mbhc-v2.c index 3194724ee2b5..08d7678b7d6d 100644 --- a/asoc/codecs/wcd-mbhc-v2.c +++ b/asoc/codecs/wcd-mbhc-v2.c @@ -515,15 +515,6 @@ static void wcd_mbhc_set_and_turnoff_hph_padac(struct wcd_mbhc *mbhc) int wcd_mbhc_get_impedance(struct wcd_mbhc *mbhc, uint32_t *zl, uint32_t *zr) { - int detection_type = -EINVAL; - - WCD_MBHC_REG_READ(WCD_MBHC_MECH_DETECTION_TYPE, detection_type); - /* Call compute impedance only when accessory is inserted */ - if (!detection_type) { - if (mbhc->mbhc_cb->compute_impedance) - mbhc->mbhc_cb->compute_impedance(mbhc, - &mbhc->zl, &mbhc->zr); - } *zl = mbhc->zl; *zr = mbhc->zr;