From 0efdd7a5f74c955d0eb604cd3fef9069be57bcbb Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 27 Jan 2008 21:13:04 +0000 Subject: Use the timeout API as a oneshot for headphone plug debouncing. Set at 1s for now which seems comfortable and was good for meg-fx but target-specific adjustment is easy enough (my 3G hp jack is dead so I can't check that one :( ). Do some minor rearrangements for init safety and consistency. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16178 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/config.h b/firmware/export/config.h index cf75d67aa5..1f29a4f207 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -489,4 +489,11 @@ #endif /* NUM_CORES */ +#ifdef HAVE_HEADPHONE_DETECTION +/* Timeout objects required if headphone detection is enabled */ +#ifndef INCLUDE_TIMEOUT_API +#define INCLUDE_TIMEOUT_API +#endif +#endif /* HAVE_HEADPHONE_DETECTION */ + #endif /* __CONFIG_H__ */ -- cgit v1.2.3