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

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

Merge "ASoC: wcd9xxx: Do not acquire codec resource lock to get hph impedance"

parents cfe9fb7b 0ec0660b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -4828,10 +4828,8 @@ static int wcd9xxx_detect_impedance(struct wcd9xxx_mbhc *mbhc, uint32_t *zl,
int wcd9xxx_mbhc_get_impedance(struct wcd9xxx_mbhc *mbhc, uint32_t *zl,
			       uint32_t *zr)
{
	WCD9XXX_BCL_LOCK(mbhc->resmgr);
	*zl = mbhc->zl;
	*zr = mbhc->zr;
	WCD9XXX_BCL_UNLOCK(mbhc->resmgr);

	if (*zl && *zr)
		return 0;