Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15e78317 authored by Vatsal Bucha's avatar Vatsal Bucha Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent b4c9798b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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);