From 82e2e0fd3fcf2aec9d5796e31d7f29c738331f6b Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Mon, 1 Apr 2013 19:04:43 +0100 Subject: extcon: arizona: Raise minimum microphone impedance for HPDET method Ensure greater reliability by increasing the minimum threashold for identifying a microphone. Signed-off-by: Mark Brown diff --git a/drivers/extcon/extcon-arizona.c b/drivers/extcon/extcon-arizona.c index 132bc99..2f0bd49 100644 --- a/drivers/extcon/extcon-arizona.c +++ b/drivers/extcon/extcon-arizona.c @@ -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; -- cgit v0.10.2