diff options
| author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-03-29 17:28:30 +0000 |
|---|---|---|
| committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-03-29 17:28:30 +0000 |
| commit | 732df386af71dfcf3aa800c2fa2b29073dd94ee7 (patch) | |
| tree | d32c1a7004445b54ef248b0ec088b0b62dda37e3 /apps/buffering.c | |
| parent | 3b46671a40f4338b7ace8cdb64cf716f73626f31 (diff) | |
| download | rockbox-732df386af71dfcf3aa800c2fa2b29073dd94ee7.zip rockbox-732df386af71dfcf3aa800c2fa2b29073dd94ee7.tar.gz rockbox-732df386af71dfcf3aa800c2fa2b29073dd94ee7.tar.bz2 rockbox-732df386af71dfcf3aa800c2fa2b29073dd94ee7.tar.xz | |
Boost the audio thread while it's filling the buffer. In the audio and the buffering threads, only cancel cpu boost when not filling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16880 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/buffering.c')
| -rw-r--r-- | apps/buffering.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/buffering.c b/apps/buffering.c index e642142..e7dda98 100644 --- a/apps/buffering.c +++ b/apps/buffering.c @@ -1338,8 +1338,10 @@ void buffering_thread(void) while (true) { - cancel_cpu_boost(); - queue_wait_w_tmo(&buffering_queue, &ev, filling?5:HZ/2); + if (!filling) + cancel_cpu_boost(); + + queue_wait_w_tmo(&buffering_queue, &ev, filling ? 5 : HZ/2); switch (ev.id) { |