1
0
Fork 0
forked from len0rd/rockbox

Patch #6067 from Robert Keevil - enable headphone detection for the remaining ipods (mini 1g/2g and ipod 3g)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11060 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2006-09-26 11:15:33 +00:00
parent d76a1e904f
commit c8dbe047ff
4 changed files with 13 additions and 0 deletions

View file

@ -1351,7 +1351,11 @@ void button_clear_queue(void)
#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