提交 82e2e0fd 编写于 作者: M Mark Brown

extcon: arizona: Raise minimum microphone impedance for HPDET method

Ensure greater reliability by increasing the minimum threashold for
identifying a microphone.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 e56a0a57
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册