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

Commit 4c721aba authored by Phani Kumar Uppalapati's avatar Phani Kumar Uppalapati
Browse files

ASoC: wcd9xxx: Enable impedance detection by default for wcd9330



Enable impedance detection feature by default on WCD9330 audio
codec. This feature also has support to classify the inserted
headset/headphone as Mono or Stereo type.

Change-Id: I96c8b74f3716748c2fa6ba01395ec3fc034bf305
Signed-off-by: default avatarPhani Kumar Uppalapati <phaniu@codeaurora.org>
parent 648cfa62
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5326,8 +5326,7 @@ int wcd9xxx_mbhc_init(struct wcd9xxx_mbhc *mbhc, struct wcd9xxx_resmgr *resmgr,

	/* Disable Impedance detection by default for certain codec types */
	if (mbhc->mbhc_cb && mbhc->mbhc_cb->get_cdc_type &&
	    ((mbhc->mbhc_cb->get_cdc_type() == WCD9XXX_CDC_TYPE_HELICON) ||
	    (mbhc->mbhc_cb->get_cdc_type() == WCD9XXX_CDC_TYPE_TOMTOM)))
	    (mbhc->mbhc_cb->get_cdc_type() == WCD9XXX_CDC_TYPE_HELICON))
		impedance_detect_en = 0;
	else
		impedance_detect_en = impedance_det_en ? 1 : 0;