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

Commit 0363b6c3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: wcd-mbhc: correct cross connection check"

parents 8edc0bf8 b8c3c325
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -886,6 +886,11 @@ static int wcd_check_cross_conn(struct wcd_mbhc *mbhc)
		return -EINVAL;
	}

	/* If PA is enabled, dont check for cross-connection */
	if (mbhc->mbhc_cb->hph_pa_on_status)
		if (mbhc->mbhc_cb->hph_pa_on_status(mbhc->codec))
			return false;

	WCD_MBHC_REG_READ(WCD_MBHC_ELECT_SCHMT_ISRC, reg1);
	/*
	 * Check if there is any cross connection,