diff options
Diffstat (limited to 'apps/codecs/wavpack_enc.c')
| -rw-r--r-- | apps/codecs/wavpack_enc.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/apps/codecs/wavpack_enc.c b/apps/codecs/wavpack_enc.c index cf58a59..70261e7 100644 --- a/apps/codecs/wavpack_enc.c +++ b/apps/codecs/wavpack_enc.c @@ -343,9 +343,6 @@ static bool init_encoder(void) ci->enc_set_parameters == NULL || ci->enc_get_chunk == NULL || ci->enc_finish_chunk == NULL || -#ifdef HAVE_ADJUSTABLE_CPU_FREQ - ci->enc_pcm_buf_near_empty == NULL || -#endif ci->enc_get_pcm_data == NULL || ci->enc_unget_pcm_data == NULL ) return false; @@ -386,10 +383,6 @@ static bool init_encoder(void) enum codec_status codec_main(void) { -#ifdef HAVE_ADJUSTABLE_CPU_FREQ - bool cpu_boosted; -#endif - /* initialize params and config */ if (!init_encoder()) { @@ -400,11 +393,6 @@ enum codec_status codec_main(void) /* main application waits for this flag during encoder loading */ ci->enc_codec_loaded = 1; -#ifdef HAVE_ADJUSTABLE_CPU_FREQ - ci->cpu_boost(true); - cpu_boosted = true; -#endif - /* main encoding loop */ while(!ci->stop_encoder) { @@ -422,13 +410,6 @@ enum codec_status codec_main(void) abort_chunk = true; -#ifdef HAVE_ADJUSTABLE_CPU_FREQ - if (!cpu_boosted && ci->enc_pcm_buf_near_empty() == 0) - { - ci->cpu_boost(true); - cpu_boosted = true; - } -#endif chunk = ci->enc_get_chunk(); /* reset counts and pointer */ @@ -472,21 +453,9 @@ enum codec_status codec_main(void) } } -#ifdef HAVE_ADJUSTABLE_CPU_FREQ - if (cpu_boosted && ci->enc_pcm_buf_near_empty() != 0) - { - ci->cpu_boost(false); - cpu_boosted = false; - } -#endif ci->yield(); } -#ifdef HAVE_ADJUSTABLE_CPU_FREQ - if (cpu_boosted) /* set initial boost state */ - ci->cpu_boost(false); -#endif - /* reset parameters to initial state */ ci->enc_set_parameters(NULL); |