summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/recorder/recording.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c
index ff002d7685..118965d496 100644
--- a/apps/recorder/recording.c
+++ b/apps/recorder/recording.c
@@ -535,7 +535,8 @@ int rec_create_directory(void)
#if CONFIG_CODEC == SWCODEC && !defined(SIMULATOR)
-#ifdef HAVE_ADJUSTABLE_CPU_FREQ
+# ifdef HAVE_SPDIF_IN
+# ifdef HAVE_ADJUSTABLE_CPU_FREQ
static void rec_boost(bool state)
{
static bool cpu_boosted = false;
@@ -546,7 +547,8 @@ static void rec_boost(bool state)
cpu_boosted = state;
}
}
-#endif
+# endif
+# endif
/**
* Selects an audio source for recording or playback