Przeglądaj źródła

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 <[email protected]>
Vatsal Bucha 6 lat temu
rodzic
commit
15e7831783
1 zmienionych plików z 0 dodań i 3 usunięć
  1. 0 3
      asoc/codecs/wcd-mbhc-v2.c

+ 0 - 3
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);