diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/drivers/power.c | 5 | ||||
-rw-r--r-- | firmware/powermgmt.c | 10 |
2 files changed, 1 insertions, 14 deletions
diff --git a/firmware/drivers/power.c b/firmware/drivers/power.c index 22c2159499..aa76c2ecb6 100644 --- a/firmware/drivers/power.c +++ b/firmware/drivers/power.c | |||
@@ -202,10 +202,7 @@ void power_off(void) | |||
202 | #elif defined(HAVE_POWEROFF_ON_PB5) | 202 | #elif defined(HAVE_POWEROFF_ON_PB5) |
203 | and_b(~0x20, &PBDRL); | 203 | and_b(~0x20, &PBDRL); |
204 | or_b(0x20, &PBIORL); | 204 | or_b(0x20, &PBIORL); |
205 | #else | 205 | #else /* player */ |
206 | /* Disable the backlight */ | ||
207 | and_b(~0x40, &PAIORH); | ||
208 | |||
209 | and_b(~0x08, &PADRH); | 206 | and_b(~0x08, &PADRH); |
210 | or_b(0x08, &PAIORH); | 207 | or_b(0x08, &PAIORH); |
211 | #endif | 208 | #endif |
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c index 9eb60b64a5..a202c71bbf 100644 --- a/firmware/powermgmt.c +++ b/firmware/powermgmt.c | |||
@@ -1316,16 +1316,6 @@ void shutdown_hw(void) | |||
1316 | while(ata_disk_is_active()) | 1316 | while(ata_disk_is_active()) |
1317 | sleep(HZ/10); | 1317 | sleep(HZ/10); |
1318 | 1318 | ||
1319 | #if !defined (IAUDIO_X5) && !defined (SANSA_E200) | ||
1320 | #if defined(HAVE_BACKLIGHT_PWM_FADING) && !defined(SIMULATOR) | ||
1321 | backlight_set_fade_out(0); | ||
1322 | #endif | ||
1323 | backlight_off(); | ||
1324 | #endif /* IAUDIO_X5, SANSA_E200 */ | ||
1325 | #ifdef HAVE_REMOTE_LCD | ||
1326 | remote_backlight_off(); | ||
1327 | #endif | ||
1328 | |||
1329 | #if CONFIG_CODEC != SWCODEC | 1319 | #if CONFIG_CODEC != SWCODEC |
1330 | mp3_shutdown(); | 1320 | mp3_shutdown(); |
1331 | #else | 1321 | #else |