diff options
author | Daniel Ankers <dan@weirdo.org.uk> | 2006-10-07 12:19:34 +0000 |
---|---|---|
committer | Daniel Ankers <dan@weirdo.org.uk> | 2006-10-07 12:19:34 +0000 |
commit | 5c6f32af9563764cf7b3f9529956ac27808246cf (patch) | |
tree | 3df4eb7103c77846a938092b79ce445ab7f0330c /firmware/drivers | |
parent | 24c337514333460b3738403b264498cad746ccc0 (diff) |
Move iPod headphone detection into target tree (FS#6131 by Robert Keevil) and fix detection on 3G iPod
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11143 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/button.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 8acae01006..cc9f0fa18d 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -951,15 +951,3 @@ void button_clear_queue(void) { queue_clear(&button_queue); } - -#ifdef HAVE_HEADPHONE_DETECTION -bool headphones_inserted(void) -{ -#if (CONFIG_KEYPAD==IPOD_3G_PAD) - return (GPIOB_INPUT_VAL & 0x10)?true:false; -#elif (CONFIG_KEYPAD==IPOD_4G_PAD) - return (GPIOA_INPUT_VAL & 0x80)?true:false; -#endif -} -#endif - |