diff options
Diffstat (limited to 'apps/codecs/aiff_enc.c')
-rw-r--r-- | apps/codecs/aiff_enc.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/apps/codecs/aiff_enc.c b/apps/codecs/aiff_enc.c index 51c4344702..749c3a13a1 100644 --- a/apps/codecs/aiff_enc.c +++ b/apps/codecs/aiff_enc.c | |||
@@ -304,9 +304,6 @@ static bool init_encoder(void) | |||
304 | ci->enc_set_parameters == NULL || | 304 | ci->enc_set_parameters == NULL || |
305 | ci->enc_get_chunk == NULL || | 305 | ci->enc_get_chunk == NULL || |
306 | ci->enc_finish_chunk == NULL || | 306 | ci->enc_finish_chunk == NULL || |
307 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
308 | ci->enc_pcm_buf_near_empty == NULL || | ||
309 | #endif | ||
310 | ci->enc_get_pcm_data == NULL ) | 307 | ci->enc_get_pcm_data == NULL ) |
311 | return false; | 308 | return false; |
312 | 309 | ||
@@ -334,10 +331,6 @@ static bool init_encoder(void) | |||
334 | /* main codec entry point */ | 331 | /* main codec entry point */ |
335 | enum codec_status codec_main(void) | 332 | enum codec_status codec_main(void) |
336 | { | 333 | { |
337 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
338 | bool cpu_boosted; | ||
339 | #endif | ||
340 | |||
341 | if (!init_encoder()) | 334 | if (!init_encoder()) |
342 | { | 335 | { |
343 | ci->enc_codec_loaded = -1; | 336 | ci->enc_codec_loaded = -1; |
@@ -347,11 +340,6 @@ enum codec_status codec_main(void) | |||
347 | /* main application waits for this flag during encoder loading */ | 340 | /* main application waits for this flag during encoder loading */ |
348 | ci->enc_codec_loaded = 1; | 341 | ci->enc_codec_loaded = 1; |
349 | 342 | ||
350 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
351 | ci->cpu_boost(true); | ||
352 | cpu_boosted = true; | ||
353 | #endif | ||
354 | |||
355 | /* main encoding loop */ | 343 | /* main encoding loop */ |
356 | while(!ci->stop_encoder) | 344 | while(!ci->stop_encoder) |
357 | { | 345 | { |
@@ -364,13 +352,6 @@ enum codec_status codec_main(void) | |||
364 | if (ci->stop_encoder) | 352 | if (ci->stop_encoder) |
365 | break; | 353 | break; |
366 | 354 | ||
367 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
368 | if (!cpu_boosted && ci->enc_pcm_buf_near_empty() == 0) | ||
369 | { | ||
370 | ci->cpu_boost(true); | ||
371 | cpu_boosted = true; | ||
372 | } | ||
373 | #endif | ||
374 | chunk = ci->enc_get_chunk(); | 355 | chunk = ci->enc_get_chunk(); |
375 | chunk->enc_size = enc_size; | 356 | chunk->enc_size = enc_size; |
376 | chunk->num_pcm = PCM_SAMP_PER_CHUNK; | 357 | chunk->num_pcm = PCM_SAMP_PER_CHUNK; |
@@ -382,21 +363,9 @@ enum codec_status codec_main(void) | |||
382 | ci->yield(); | 363 | ci->yield(); |
383 | } | 364 | } |
384 | 365 | ||
385 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
386 | if (cpu_boosted && ci->enc_pcm_buf_near_empty() != 0) | ||
387 | { | ||
388 | ci->cpu_boost(false); | ||
389 | cpu_boosted = false; | ||
390 | } | ||
391 | #endif | ||
392 | ci->yield(); | 366 | ci->yield(); |
393 | } | 367 | } |
394 | 368 | ||
395 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
396 | if (cpu_boosted) /* set initial boost state */ | ||
397 | ci->cpu_boost(false); | ||
398 | #endif | ||
399 | |||
400 | /* reset parameters to initial state */ | 369 | /* reset parameters to initial state */ |
401 | ci->enc_set_parameters(NULL); | 370 | ci->enc_set_parameters(NULL); |
402 | 371 | ||