diff options
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 9 |
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; | |||
131 | static char *voicebuf; | 131 | static char *voicebuf; |
132 | static int voice_remaining; | 132 | static int voice_remaining; |
133 | static bool voice_is_playing; | 133 | static bool voice_is_playing; |
134 | static bool voice_cpu_boosted = false; | ||
135 | static void (*voice_getmore)(unsigned char** start, int* size); | 134 | static 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 | ||
258 | static void voice_boost_cpu(bool state) | 258 | static 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 | ||
269 | bool codec_pcmbuf_insert_split_callback(void *ch1, void *ch2, | 272 | bool codec_pcmbuf_insert_split_callback(void *ch1, void *ch2, |
270 | long length) | 273 | long length) |