aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-10-06 18:54:28 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-10-07 15:58:56 -0400
commit4c14d78e8ad3bacfe1f70cb49ae17afcd658e368 (patch)
treeca487b5abebf8ce0b587434b682070c242e718ea /include/sound/soc.h
parentde535a5be53a06738409538c471a10a9de357bdd (diff)
ASoC: Use delayed work for debounce of GPIO based jacks
Rather than block the workqueue by sleeping to do the debounce use delayed work to implement the debounce time. This should also means that we extend the debounce time on each new bounce, potentially allowing shorter debounce times for clean insertions. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Jarkko Nikula <jhnikula@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 493b3a4c193..4fb079e14e1 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -385,7 +385,7 @@ struct snd_soc_jack_gpio {
385 int invert; 385 int invert;
386 int debounce_time; 386 int debounce_time;
387 struct snd_soc_jack *jack; 387 struct snd_soc_jack *jack;
388 struct work_struct work; 388 struct delayed_work work;
389 389
390 int (*jack_status_check)(void); 390 int (*jack_status_check)(void);
391}; 391};