summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
authorMiika Pekkarinen <miipekk@ihme.org>2005-08-28 19:55:30 +0000
committerMiika Pekkarinen <miipekk@ihme.org>2005-08-28 19:55:30 +0000
commit65d43a2d223f39f5f4f6d7394052aecd6263a9e0 (patch)
treee046b4249cccda737f4665697d2f05e6c113cbd8 /apps/playback.c
parentd7170b7542f9a593377f2f36e3d1f933681af718 (diff)
downloadrockbox-65d43a2d223f39f5f4f6d7394052aecd6263a9e0.tar.gz
rockbox-65d43a2d223f39f5f4f6d7394052aecd6263a9e0.zip
Define empty macros for cpu boosting on targets with no such a feature.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7412 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r--apps/playback.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/playback.c b/apps/playback.c
index ffd298fbdf..c106644d9f 100644
--- a/apps/playback.c
+++ b/apps/playback.c
@@ -131,7 +131,6 @@ static struct mp3entry id3_voice;
131static char *voicebuf; 131static char *voicebuf;
132static int voice_remaining; 132static int voice_remaining;
133static bool voice_is_playing; 133static bool voice_is_playing;
134static bool voice_cpu_boosted = false;
135static void (*voice_getmore)(unsigned char** start, int* size); 134static void (*voice_getmore)(unsigned char** start, int* size);
136 135
137/* Is file buffer currently being refilled? */ 136/* Is file buffer currently being refilled? */
@@ -255,16 +254,20 @@ static void swap_codec(void)
255 logf("codec resuming:%d", current_codec); 254 logf("codec resuming:%d", current_codec);
256} 255}
257 256
257#ifdef HAVE_ADJUSTABLE_CPU_FREQ
258static void voice_boost_cpu(bool state) 258static void voice_boost_cpu(bool state)
259{ 259{
260 static bool voice_cpu_boosted = false;
261
260 if (state != voice_cpu_boosted) 262 if (state != voice_cpu_boosted)
261 { 263 {
262#ifdef HAVE_ADJUSTABLE_CPU_FREQ
263 cpu_boost(state); 264 cpu_boost(state);
264#endif
265 voice_cpu_boosted = state; 265 voice_cpu_boosted = state;
266 } 266 }
267} 267}
268#else
269#define voice_boost_cpu(state) do { } while(0)
270#endif
268 271
269bool codec_pcmbuf_insert_split_callback(void *ch1, void *ch2, 272bool codec_pcmbuf_insert_split_callback(void *ch1, void *ch2,
270 long length) 273 long length)