From 65d43a2d223f39f5f4f6d7394052aecd6263a9e0 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 28 Aug 2005 19:55:30 +0000 Subject: 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 --- apps/playback.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'apps/playback.c') 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; static char *voicebuf; static int voice_remaining; static bool voice_is_playing; -static bool voice_cpu_boosted = false; static void (*voice_getmore)(unsigned char** start, int* size); /* Is file buffer currently being refilled? */ @@ -255,16 +254,20 @@ static void swap_codec(void) logf("codec resuming:%d", current_codec); } +#ifdef HAVE_ADJUSTABLE_CPU_FREQ static void voice_boost_cpu(bool state) { + static bool voice_cpu_boosted = false; + if (state != voice_cpu_boosted) { -#ifdef HAVE_ADJUSTABLE_CPU_FREQ cpu_boost(state); -#endif voice_cpu_boosted = state; } } +#else +#define voice_boost_cpu(state) do { } while(0) +#endif bool codec_pcmbuf_insert_split_callback(void *ch1, void *ch2, long length) -- cgit v1.2.3