extcon: arizona: Raise minimum microphone impedance for HPDET method
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Apr 2013 18:04:43 +0000 (19:04 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 2 Apr 2013 10:53:55 +0000 (11:53 +0100)
Ensure greater reliability by increasing the minimum threashold for
identifying a microphone.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/extcon/extcon-arizona.c

index 132bc99fdc06f9c479add9d879cbd04024b4e87c..2f0bd4938fccc3e2d703436e6831349cf73f6f57 100644 (file)
@@ -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;