summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2006-11-08 02:23:01 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2006-11-08 02:23:01 +0000
commitd9f7ac24f42e62a314ed76768597859a6a229743 (patch)
tree70270928c740dfbd351c4859b864ee4172b87fbf /apps
parentf184152c0501a80e95ad871927d766fdee50281b (diff)
downloadrockbox-d9f7ac24f42e62a314ed76768597859a6a229743.zip
rockbox-d9f7ac24f42e62a314ed76768597859a6a229743.tar.gz
rockbox-d9f7ac24f42e62a314ed76768597859a6a229743.tar.bz2
rockbox-d9f7ac24f42e62a314ed76768597859a6a229743.tar.xz
fix booboo in ata.c (SYS_POWEROFF falling into SYS_USB_CONNECTED)
enable ata_idle callbacks in ata_mmc.c (calls the callbacks after 10s of real inactivity) fix builds git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11462 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/gwps.c5
-rw-r--r--apps/playback.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c
index a9ceae8..115e9f7 100644
--- a/apps/gui/gwps.c
+++ b/apps/gui/gwps.c
@@ -57,6 +57,7 @@
#ifdef HAVE_LCD_COLOR
#include "backdrop.h"
#endif
+#include "ata_idle_notify.h"
#define WPS_DEFAULTCFG WPS_DIR "/rockbox_default.wps"
#define RWPS_DEFAULTCFG WPS_DIR "/rockbox_default.rwps"
@@ -140,7 +141,7 @@ long gui_wps_show(void)
if (wps_state.paused) {
settings_save();
#if !defined(HAVE_RTC_RAM) && !defined(HAVE_SW_POWEROFF)
- ata_flush();
+ call_ata_idle_notifys(false);
#endif
}
}
@@ -254,7 +255,7 @@ long gui_wps_show(void)
audio_pause();
settings_save();
#if !defined(HAVE_RTC_RAM) && !defined(HAVE_SW_POWEROFF)
- ata_flush(); /* make sure resume info is saved */
+ call_ata_idle_notifys(false); /* make sure resume info is saved */
#endif
}
break;
diff --git a/apps/playback.c b/apps/playback.c
index c0558ed..f1589ac 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -2780,8 +2780,10 @@ static void audio_fill_file_buffer(
audio_generate_postbuffer_events();
filling = false;
}
-
+#ifndef SIMULATOR
ata_sleep();
+#endif
+
}
static void audio_rebuffer(void)