summaryrefslogtreecommitdiff
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-10-13 20:48:23 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-10-13 20:48:23 +0000
commit1f3360f0216dbf54bcd50547a759fa6e514c6e76 (patch)
tree45de3e0c28ce4700aeb78db37c9eb8f34eeb3d8a /apps/pcmbuf.c
parent3beaad8d0645488fa5b9a2f4983caae585f81312 (diff)
downloadrockbox-1f3360f0216dbf54bcd50547a759fa6e514c6e76.tar.gz
rockbox-1f3360f0216dbf54bcd50547a759fa6e514c6e76.zip
Just take out some out-of-date TODOs from playback.c and put a big FIXME in pcmbuf.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11217 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 6d2f68a238..964ebbc901 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -38,7 +38,7 @@
38#include "thread.h" 38#include "thread.h"
39 39
40/* Keep watermark high for iPods at least (2s) */ 40/* Keep watermark high for iPods at least (2s) */
41#define PCMBUF_WATERMARK (NATIVE_FREQUENCY * 8) 41#define PCMBUF_WATERMARK (NATIVE_FREQUENCY * 4 * 2)
42 42
43/* Structure we can use to queue pcm chunks in memory to be played 43/* Structure we can use to queue pcm chunks in memory to be played
44 * by the driver code. */ 44 * by the driver code. */
@@ -203,6 +203,13 @@ process_new_buffer:
203 *realsize = 0; 203 *realsize = 0;
204 *realstart = NULL; 204 *realstart = NULL;
205 CALL_IF_EXISTS(pcmbuf_event_handler); 205 CALL_IF_EXISTS(pcmbuf_event_handler);
206 /* FIXME: We need to find another way to keep the CPU from
207 * being left boosted, because this is boosting in interrupt
208 * context. This is also not a good thing, because it will
209 * result in the CPU being deboosted if there is a legitimate
210 * buffer underrun (albeit only temporarily, because someone
211 * will reboost it soon, but it will make the skip longer
212 * than necessary. */
206 pcmbuf_boost(false); 213 pcmbuf_boost(false);
207 } 214 }
208 } 215 }