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

Commit bb5327e8 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: Ibe33e4e8fe08405a8b30bf427742943b91491ef8
Signed-off-by: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent 089d1cb5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -112,7 +112,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 */
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@
/* Z floating defined in ohms */
#define TAVIL_ZDET_FLOATING_IMPEDANCE 0x0FFFFFFE

#define TAVIL_ZDET_NUM_MEASUREMENTS   150
#define TAVIL_ZDET_NUM_MEASUREMENTS   900
#define TAVIL_MBHC_GET_C1(c)          ((c & 0xC000) >> 14)
#define TAVIL_MBHC_GET_X1(x)          (x & 0x3FFF)
/* Z value compared in milliOhm */