diff options
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/recording.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index e964db1e23..ff002d7685 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -534,6 +534,20 @@ int rec_create_directory(void) | |||
534 | } | 534 | } |
535 | 535 | ||
536 | #if CONFIG_CODEC == SWCODEC && !defined(SIMULATOR) | 536 | #if CONFIG_CODEC == SWCODEC && !defined(SIMULATOR) |
537 | |||
538 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | ||
539 | static void rec_boost(bool state) | ||
540 | { | ||
541 | static bool cpu_boosted = false; | ||
542 | |||
543 | if (state != cpu_boosted) | ||
544 | { | ||
545 | cpu_boost(state); | ||
546 | cpu_boosted = state; | ||
547 | } | ||
548 | } | ||
549 | #endif | ||
550 | |||
537 | /** | 551 | /** |
538 | * Selects an audio source for recording or playback | 552 | * Selects an audio source for recording or playback |
539 | * powers/unpowers related devices. | 553 | * powers/unpowers related devices. |
@@ -567,7 +581,7 @@ void rec_set_source(int source, int flags) | |||
567 | 581 | ||
568 | #ifdef HAVE_SPDIF_IN | 582 | #ifdef HAVE_SPDIF_IN |
569 | if ((source == AUDIO_SRC_SPDIF) != (source == last_source)) | 583 | if ((source == AUDIO_SRC_SPDIF) != (source == last_source)) |
570 | cpu_boost(source == AUDIO_SRC_SPDIF); | 584 | rec_boost(source == AUDIO_SRC_SPDIF); |
571 | 585 | ||
572 | #ifdef HAVE_SPDIF_POWER | 586 | #ifdef HAVE_SPDIF_POWER |
573 | /* Check if S/PDIF output power should be switched off or on. NOTE: assumes | 587 | /* Check if S/PDIF output power should be switched off or on. NOTE: assumes |