diff options
author | Michael Sparmann <theseven@rockbox.org> | 2011-01-07 23:08:01 +0000 |
---|---|---|
committer | Michael Sparmann <theseven@rockbox.org> | 2011-01-07 23:08:01 +0000 |
commit | 0e773ad92cda7acf7753b60ba4c044e4887e8bcd (patch) | |
tree | c9d89dc893894200ed67200c26631631e65fa85b | |
parent | 906d2f08ed6c257e5b31bc9a70dca64185ca96bd (diff) | |
download | rockbox-0e773ad92cda7acf7753b60ba4c044e4887e8bcd.tar.gz rockbox-0e773ad92cda7acf7753b60ba4c044e4887e8bcd.zip |
Implement hold switch and headphone detection on iPod Classic
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29001 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/ipod/button-clickwheel.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/arm/ipod/button-clickwheel.c b/firmware/target/arm/ipod/button-clickwheel.c index 46e91099f0..9f026658fb 100644 --- a/firmware/target/arm/ipod/button-clickwheel.c +++ b/firmware/target/arm/ipod/button-clickwheel.c | |||
@@ -383,8 +383,7 @@ bool button_hold(void) | |||
383 | #if CONFIG_CPU==S5L8701 | 383 | #if CONFIG_CPU==S5L8701 |
384 | return ((PDAT14 & (1 << 6)) == 0); | 384 | return ((PDAT14 & (1 << 6)) == 0); |
385 | #elif CONFIG_CPU==S5L8702 | 385 | #elif CONFIG_CPU==S5L8702 |
386 | //TODO: Implement | 386 | return ((PDATE & (1 << 3)) == 0); |
387 | return false; | ||
388 | #endif | 387 | #endif |
389 | } | 388 | } |
390 | 389 | ||
@@ -393,7 +392,7 @@ bool headphones_inserted(void) | |||
393 | #if CONFIG_CPU==S5L8701 | 392 | #if CONFIG_CPU==S5L8701 |
394 | return ((PDAT14 & (1 << 5)) != 0); | 393 | return ((PDAT14 & (1 << 5)) != 0); |
395 | #elif CONFIG_CPU==S5L8702 | 394 | #elif CONFIG_CPU==S5L8702 |
396 | //TODO: Implement | 395 | return ((PDATA & (1 << 6)) != 0); |
397 | return false; | 396 | return false; |
398 | #endif | 397 | #endif |
399 | } | 398 | } |