summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/audio-pp.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/audio-pp.c')
-rw-r--r--firmware/target/arm/audio-pp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/arm/audio-pp.c b/firmware/target/arm/audio-pp.c
index 3c4a3a8cae..ba52118e0f 100644
--- a/firmware/target/arm/audio-pp.c
+++ b/firmware/target/arm/audio-pp.c
@@ -23,11 +23,10 @@
#include "audio.h"
#include "sound.h"
+#if INPUT_SRC_CAPS != 0
void audio_set_output_source(int source)
{
-#if INPUT_SRC_CAPS != 0
if ((unsigned)source >= AUDIO_NUM_SOURCES)
-#endif
source = AUDIO_SRC_PLAYBACK;
} /* audio_set_output_source */
@@ -109,5 +108,5 @@ void audio_input_mux(int source, unsigned flags)
last_source = source;
} /* audio_input_mux */
-
+#endif /* INPUT_SRC_CAPS != 0 */