From 0e773ad92cda7acf7753b60ba4c044e4887e8bcd Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Fri, 7 Jan 2011 23:08:01 +0000 Subject: [PATCH] Implement hold switch and headphone detection on iPod Classic git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29001 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/ipod/button-clickwheel.c | 5 ++--- 1 file 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) #if CONFIG_CPU==S5L8701 return ((PDAT14 & (1 << 6)) == 0); #elif CONFIG_CPU==S5L8702 - //TODO: Implement - return false; + return ((PDATE & (1 << 3)) == 0); #endif } @@ -393,7 +392,7 @@ bool headphones_inserted(void) #if CONFIG_CPU==S5L8701 return ((PDAT14 & (1 << 5)) != 0); #elif CONFIG_CPU==S5L8702 - //TODO: Implement + return ((PDATA & (1 << 6)) != 0); return false; #endif }