forked from len0rd/rockbox
Don't let the shutdown code mess with the backlight anymore on most targets. The backlight thread decides what to do on shutdown.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14340 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c5ed1be35d
commit
b03ffacda9
2 changed files with 1 additions and 14 deletions
|
|
@ -202,10 +202,7 @@ void power_off(void)
|
|||
#elif defined(HAVE_POWEROFF_ON_PB5)
|
||||
and_b(~0x20, &PBDRL);
|
||||
or_b(0x20, &PBIORL);
|
||||
#else
|
||||
/* Disable the backlight */
|
||||
and_b(~0x40, &PAIORH);
|
||||
|
||||
#else /* player */
|
||||
and_b(~0x08, &PADRH);
|
||||
or_b(0x08, &PAIORH);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1316,16 +1316,6 @@ void shutdown_hw(void)
|
|||
while(ata_disk_is_active())
|
||||
sleep(HZ/10);
|
||||
|
||||
#if !defined (IAUDIO_X5) && !defined (SANSA_E200)
|
||||
#if defined(HAVE_BACKLIGHT_PWM_FADING) && !defined(SIMULATOR)
|
||||
backlight_set_fade_out(0);
|
||||
#endif
|
||||
backlight_off();
|
||||
#endif /* IAUDIO_X5, SANSA_E200 */
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
remote_backlight_off();
|
||||
#endif
|
||||
|
||||
#if CONFIG_CODEC != SWCODEC
|
||||
mp3_shutdown();
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue