[alsa-devel] [PATCH] ASoC: delay the initial jack detect by debounce_time
23 Feb
2014
23 Feb
'14
7:44 a.m.
so the hardware could get time to initialize and debounce
Change-Id: Iebeffa9bac6c4012ee8f9645771c13b28fe5ae80 Signed-off-by: xiangxiao xiaoxiang@xiaomi.com --- sound/soc/soc-jack.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c index 23d43da..b12fce6 100644 --- a/sound/soc/soc-jack.c +++ b/sound/soc/soc-jack.c @@ -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;
--
1.8.1.2
3954
Age (days ago)
3955
Last active (days ago)
1 comments
2 participants
participants (2)
-
Mark Brown
-
xiangxiao