diff options
Diffstat (limited to 'firmware/target/arm/audio-pp.c')
-rw-r--r-- | firmware/target/arm/audio-pp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/audio-pp.c b/firmware/target/arm/audio-pp.c index 8163295661..994b223d43 100644 --- a/firmware/target/arm/audio-pp.c +++ b/firmware/target/arm/audio-pp.c | |||
@@ -29,6 +29,7 @@ void audio_set_output_source(int source) | |||
29 | 29 | ||
30 | void audio_set_source(int source, unsigned flags) | 30 | void audio_set_source(int source, unsigned flags) |
31 | { | 31 | { |
32 | (void)flags; | ||
32 | /* Prevent pops from unneeded switching */ | 33 | /* Prevent pops from unneeded switching */ |
33 | static int last_source = AUDIO_SRC_PLAYBACK; | 34 | static int last_source = AUDIO_SRC_PLAYBACK; |
34 | #ifdef CONFIG_TUNER | 35 | #ifdef CONFIG_TUNER |
@@ -39,6 +40,7 @@ void audio_set_source(int source, unsigned flags) | |||
39 | { | 40 | { |
40 | default: /* playback - no recording */ | 41 | default: /* playback - no recording */ |
41 | source = AUDIO_SRC_PLAYBACK; | 42 | source = AUDIO_SRC_PLAYBACK; |
43 | #ifdef HAVE_RECORDING | ||
42 | case AUDIO_SRC_PLAYBACK: | 44 | case AUDIO_SRC_PLAYBACK: |
43 | if (source != last_source) | 45 | if (source != last_source) |
44 | { | 46 | { |
@@ -46,7 +48,6 @@ void audio_set_source(int source, unsigned flags) | |||
46 | audiohw_set_monitor(false); | 48 | audiohw_set_monitor(false); |
47 | } | 49 | } |
48 | break; | 50 | break; |
49 | |||
50 | case AUDIO_SRC_MIC: /* recording only */ | 51 | case AUDIO_SRC_MIC: /* recording only */ |
51 | if (source != last_source) | 52 | if (source != last_source) |
52 | { | 53 | { |
@@ -62,6 +63,7 @@ void audio_set_source(int source, unsigned flags) | |||
62 | audiohw_set_monitor(false); | 63 | audiohw_set_monitor(false); |
63 | } | 64 | } |
64 | break; | 65 | break; |
66 | #endif | ||
65 | #ifdef CONFIG_TUNER | 67 | #ifdef CONFIG_TUNER |
66 | case AUDIO_SRC_FMRADIO: /* recording and playback */ | 68 | case AUDIO_SRC_FMRADIO: /* recording and playback */ |
67 | if (!recording) | 69 | if (!recording) |