forked from len0rd/rockbox
Don't spin up disk to flush config sector on shutdown
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5331 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5883b4ed0b
commit
e9f7c1ade4
1 changed files with 6 additions and 5 deletions
|
|
@ -218,12 +218,13 @@ bool clean_shutdown(void)
|
||||||
{
|
{
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
splash(0, true, str(LANG_SHUTTINGDOWN));
|
splash(0, true, str(LANG_SHUTTINGDOWN));
|
||||||
sleep(HZ);
|
|
||||||
mpeg_stop();
|
mpeg_stop();
|
||||||
|
if (ata_disk_is_active()) {
|
||||||
ata_flush();
|
ata_flush();
|
||||||
ata_spindown(1);
|
ata_spindown(1);
|
||||||
while(ata_disk_is_active())
|
while(ata_disk_is_active())
|
||||||
sleep(HZ/10);
|
sleep(HZ/10);
|
||||||
|
}
|
||||||
mp3_shutdown();
|
mp3_shutdown();
|
||||||
#if CONFIG_KEYPAD == ONDIO_PAD
|
#if CONFIG_KEYPAD == ONDIO_PAD
|
||||||
backlight_off();
|
backlight_off();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue