提交 f1adf5be 编写于 作者: X xiangxiao 提交者: Mark Brown

ASoC: delay the initial jack detect by debounce_time

so the hardware could get time to initialize and debounce
Signed-off-by: Nxiangxiao <xiaoxiang@xiaomi.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 cb29d7b9
......@@ -342,7 +342,8 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
gpio_export(gpios[i].gpio, false);
/* Update initial jack status */
snd_soc_jack_gpio_detect(&gpios[i]);
schedule_delayed_work(&gpios[i].work,
msecs_to_jiffies(gpios[i].debounce_time));
}
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册