Don't call apps/ code from firmware/

Replace audio_stop() with audio_pause() in the sleep timer handler
for the connected charger case and remove recently added bookmarking code.

We don't power down anyway and a paused playback state
is still eligible for automatic bookmark creation if the
user later on removes the charger and waits for idle poweroff.

Hopefully other devs can sleep at night now. Or maybe I should leave
that change in there so they stay awake and hack on rockbox...

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29555 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Jarosch 2011-03-10 15:50:15 +00:00
parent 36d98fa7d0
commit 98cf1a14b0
1 changed files with 1 additions and 7 deletions

View File

@ -47,9 +47,6 @@
#if (CONFIG_PLATFORM & PLATFORM_HOSTED)
#include <time.h>
#endif
#ifndef BOOTLOADER
#include "bookmark.h"
#endif
#if (defined(IAUDIO_X5) || defined(IAUDIO_M5)) && !defined (SIMULATOR)
#include "lcd-remote-target.h"
@ -803,10 +800,7 @@ static void handle_sleep_timer(void)
#endif
) {
DEBUGF("Sleep timer timeout. Stopping...\n");
#ifndef BOOTLOADER
bookmark_autobookmark(false);
#endif
audio_stop();
audio_pause();
set_sleep_timer(0);
backlight_off(); /* Nighty, nighty... */
}