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

Commit 82e2e0fd authored by Mark Brown's avatar Mark Brown
Browse files

extcon: arizona: Raise minimum microphone impedance for HPDET method



Ensure greater reliability by increasing the minimum threashold for
identifying a microphone.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent e56a0a57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -519,7 +519,7 @@ static int arizona_hpdet_do_id(struct arizona_extcon_info *info, int *reading)
		 * measure the mic as high impedance.
		 */
		if ((info->hpdet_res[0] > info->hpdet_res[1] * 2) ||
		    (id_gpio && info->hpdet_res[2] > 10)) {
		    (id_gpio && info->hpdet_res[2] > 1257)) {
			dev_dbg(arizona->dev, "Detected mic\n");
			info->mic = true;
			info->detecting = true;