ASoC: delay the initial jack detect by debounce_time

so the hardware could get time to initialize and debounce

Signed-off-by: xiangxiao <xiaoxiang@xiaomi.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
xiangxiao 2014-02-23 14:44:52 +08:00 committed by Mark Brown
parent cb29d7b9ef
commit f1adf5be51

View File

@ -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;