diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-01-23 15:43:37 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-01-23 15:43:37 +0000 |
commit | 1b85f60ae0b0c1e24595e9551ce5eee10f15b182 (patch) | |
tree | a9cd95362fc8e63032647476acf4fa1cbfe1825a /apps/settings_menu.c | |
parent | b2e50906a4af3176d03dff98af4a260709bdad96 (diff) | |
download | rockbox-1b85f60ae0b0c1e24595e9551ce5eee10f15b182.tar.gz rockbox-1b85f60ae0b0c1e24595e9551ce5eee10f15b182.zip |
Permanently enable powering down the disk when it's sleeping for supported targets (iriver h1xx, h3xx and h10, iaudio x5, gigabeat and archos recorders)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12094 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_menu.c')
-rw-r--r-- | apps/settings_menu.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 04fd64b1ca..1a19bb18c8 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c | |||
@@ -1104,14 +1104,6 @@ static bool spindown(void) | |||
1104 | ata_spindown, 1, 3, 254, NULL ); | 1104 | ata_spindown, 1, 3, 254, NULL ); |
1105 | } | 1105 | } |
1106 | 1106 | ||
1107 | #ifdef HAVE_ATA_POWER_OFF | ||
1108 | static bool poweroff(void) | ||
1109 | { | ||
1110 | bool rc = set_bool(str(LANG_POWEROFF), &global_settings.disk_poweroff); | ||
1111 | ata_poweroff(global_settings.disk_poweroff); | ||
1112 | return rc; | ||
1113 | } | ||
1114 | #endif /* HAVE_ATA_POWEROFF */ | ||
1115 | #endif /* !HAVE_MMC */ | 1107 | #endif /* !HAVE_MMC */ |
1116 | 1108 | ||
1117 | #if CONFIG_CODEC == MAS3507D | 1109 | #if CONFIG_CODEC == MAS3507D |
@@ -2116,9 +2108,6 @@ static bool disk_settings_menu(void) | |||
2116 | 2108 | ||
2117 | static const struct menu_item items[] = { | 2109 | static const struct menu_item items[] = { |
2118 | { ID2P(LANG_SPINDOWN), spindown }, | 2110 | { ID2P(LANG_SPINDOWN), spindown }, |
2119 | #ifdef HAVE_ATA_POWER_OFF | ||
2120 | { ID2P(LANG_POWEROFF), poweroff }, | ||
2121 | #endif | ||
2122 | #ifdef HAVE_DIRCACHE | 2111 | #ifdef HAVE_DIRCACHE |
2123 | { ID2P(LANG_DIRCACHE_ENABLE), dircache }, | 2112 | { ID2P(LANG_DIRCACHE_ENABLE), dircache }, |
2124 | #endif | 2113 | #endif |