summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2007-02-15 13:33:07 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2007-02-15 13:33:07 +0000
commit160851e7b96a8c9ca9d0276dac7fe030ff404a35 (patch)
tree55f79c9f0474245536c56382a26eb404e63e63f9
parentb28585942dae76e5dc317e6d381f0994690954c6 (diff)
downloadrockbox-160851e7b96a8c9ca9d0276dac7fe030ff404a35.tar.gz
rockbox-160851e7b96a8c9ca9d0276dac7fe030ff404a35.tar.bz2
rockbox-160851e7b96a8c9ca9d0276dac7fe030ff404a35.zip
Fix a bug where the CPU stays boosted when the voice is activated
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12314 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playback.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/playback.c b/apps/playback.c
index b80c449c47..caaaddec6e 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -1117,7 +1117,9 @@ static void* voice_request_buffer_callback(size_t *realsize, size_t reqsize)
if (voice_is_playing || playing)
queue_wait_w_tmo(&voice_queue, &ev, 0);
else
- queue_wait(&voice_queue, &ev);
+ /* We must use queue_wait_w_tmo() because queue_wait() doesn't
+ unboost the CPU */
+ queue_wait_w_tmo(&voice_queue, &ev, INT_MAX);
if (!voice_is_playing)
{
if (ev.id == SYS_TIMEOUT)