From 15e78317836571543b7c720952cda2aebb2c5748 Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Wed, 30 Jan 2019 21:47:39 +0530 Subject: [PATCH] ASoC: wcd-mbhc: Remove hardcoding of hphl and gnd swh to NC for analog USBC Read hphl_swh and gnd_swh from dtsi instead of hardcoding to NC for every USBC target. Some platforms use NO switch. Change-Id: I3dca6c7450579e8feb5d80c1340495958683a026 Signed-off-by: Vatsal Bucha --- asoc/codecs/wcd-mbhc-v2.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/asoc/codecs/wcd-mbhc-v2.c b/asoc/codecs/wcd-mbhc-v2.c index 1159b1128a02..6a85c8232770 100644 --- a/asoc/codecs/wcd-mbhc-v2.c +++ b/asoc/codecs/wcd-mbhc-v2.c @@ -1358,9 +1358,6 @@ static int wcd_mbhc_initialise(struct wcd_mbhc *mbhc) * by an external source */ if (mbhc->mbhc_cfg->enable_usbc_analog) { - mbhc->hphl_swh = 0; - mbhc->gnd_swh = 0; - if (mbhc->mbhc_cb->hph_pull_up_control_v2) mbhc->mbhc_cb->hph_pull_up_control_v2(component, HS_PULLUP_I_OFF);