summaryrefslogtreecommitdiff
path: root/apps/playback.c
diff options
context:
space:
mode:
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)