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 <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
Mark Brown 2013-04-01 19:04:43 +01:00
parent e56a0a572b
commit 82e2e0fd3f

View file

@ -519,7 +519,7 @@ static int arizona_hpdet_do_id(struct arizona_extcon_info *info, int *reading)
* measure the mic as high impedance. * measure the mic as high impedance.
*/ */
if ((info->hpdet_res[0] > info->hpdet_res[1] * 2) || 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"); dev_dbg(arizona->dev, "Detected mic\n");
info->mic = true; info->mic = true;
info->detecting = true; info->detecting = true;