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

Commit 7743f58c authored by Vatsal Bucha's avatar Vatsal Bucha
Browse files

ASoC: wcd-mbhc: Increase number of measurements for impedance calc to 900



Stereo headset sometimes gets detected as mono headset.
This is due to incomplete ramp on headphone left and/or right.
Increase the retry loop counter to 900 so as to give
more time for the ramp to be completed.

CRs-Fixed: 2084750
Change-Id: I38f9b07e2063e2298a2e9b8a1c79b7b1283484ae
Signed-off-by: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent d0ad11f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@
/* Convert from vout ctl to micbias voltage in mV */
#define WCD_VOUT_CTL_TO_MICB(v) (1000 + v * 50)

#define TASHA_ZDET_NUM_MEASUREMENTS 150
#define TASHA_ZDET_NUM_MEASUREMENTS 900
#define TASHA_MBHC_GET_C1(c)  ((c & 0xC000) >> 14)
#define TASHA_MBHC_GET_X1(x)  (x & 0x3FFF)
/* z value compared in milliOhm */