From 3d10a810ede3f8513c32177b9939442742ae9436 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Thu, 31 Aug 2006 09:59:35 +0000 Subject: H10 changes: power_off() now actually powers off. Fix wrong bitwise operation when disabling sound. Fix filenames when building a bootloader. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10822 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/wm8731l.c | 2 +- firmware/target/arm/iriver/h10/power-h10.c | 11 ++++------- tools/configure | 4 ++-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/firmware/drivers/wm8731l.c b/firmware/drivers/wm8731l.c index f73de68b97..71ccfdb4f6 100644 --- a/firmware/drivers/wm8731l.c +++ b/firmware/drivers/wm8731l.c @@ -227,7 +227,7 @@ void wmcodec_enable_output(bool enable) } else { #if defined(IRIVER_H10) || defined(IRIVER_H10_5GB) /* We need to disable bit 4 of GPIOL to disable sound on H10 */ - GPIOL_OUTPUT_VAL ^= 0x10; + GPIOL_OUTPUT_VAL &= ~0x10; #endif wmcodec_mute(1); } diff --git a/firmware/target/arm/iriver/h10/power-h10.c b/firmware/target/arm/iriver/h10/power-h10.c index 71eae2105e..6e7b65a803 100644 --- a/firmware/target/arm/iriver/h10/power-h10.c +++ b/firmware/target/arm/iriver/h10/power-h10.c @@ -89,11 +89,8 @@ bool ide_powered(void) void power_off(void) { - /* set_irq_level(HIGHEST_IRQ_LEVEL);*/ - #ifndef BOOTLOADER - /* We don't turn off the ipod, we put it in a deep sleep */ - /* pcf50605_standby_mode(); */ - while(1) - yield(); - #endif + /* Give things a second to settle before cutting power */ + sleep(HZ); + + GPIOF_OUTPUT_VAL &=~ 0x20; } diff --git a/tools/configure b/tools/configure index 522b3c7fd0..b98dbdc490 100755 --- a/tools/configure +++ b/tools/configure @@ -952,7 +952,7 @@ EOF plugins="yes" codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a" boottool="$rootdir/tools/scramble -mi4v3" - bootoutput="h10.mi4" + bootoutput="H10_20GC.mi4" # toolset is the tools within the tools directory that we build for # this particular target. toolset="$genericbitmaptools scramble" @@ -1004,7 +1004,7 @@ EOF plugins="yes" codecs="libmad liba52 libffmpegFLAC libTremor libwavpack dumb libmusepack libalac libfaad libm4a" boottool="$rootdir/tools/scramble -mi4v2" - bootoutput="h10.mi4" + bootoutput="H10.mi4" # toolset is the tools within the tools directory that we build for # this particular target. toolset="$genericbitmaptools scramble" -- cgit v1.2.3