diff options
Diffstat (limited to 'firmware/target/arm/audio-pp.c')
-rw-r--r-- | firmware/target/arm/audio-pp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/target/arm/audio-pp.c b/firmware/target/arm/audio-pp.c index 603bbad5fe..82c5545a3f 100644 --- a/firmware/target/arm/audio-pp.c +++ b/firmware/target/arm/audio-pp.c | |||
@@ -40,7 +40,6 @@ void audio_set_source(int source, unsigned flags) | |||
40 | { | 40 | { |
41 | default: /* playback - no recording */ | 41 | default: /* playback - no recording */ |
42 | source = AUDIO_SRC_PLAYBACK; | 42 | source = AUDIO_SRC_PLAYBACK; |
43 | #ifdef HAVE_RECORDING | ||
44 | case AUDIO_SRC_PLAYBACK: | 43 | case AUDIO_SRC_PLAYBACK: |
45 | if (source != last_source) | 44 | if (source != last_source) |
46 | { | 45 | { |
@@ -48,6 +47,7 @@ void audio_set_source(int source, unsigned flags) | |||
48 | audiohw_set_monitor(false); | 47 | audiohw_set_monitor(false); |
49 | } | 48 | } |
50 | break; | 49 | break; |
50 | #ifdef HAVE_MIC_REC | ||
51 | case AUDIO_SRC_MIC: /* recording only */ | 51 | case AUDIO_SRC_MIC: /* recording only */ |
52 | if (source != last_source) | 52 | if (source != last_source) |
53 | { | 53 | { |
@@ -55,7 +55,8 @@ void audio_set_source(int source, unsigned flags) | |||
55 | audiohw_set_monitor(false); | 55 | audiohw_set_monitor(false); |
56 | } | 56 | } |
57 | break; | 57 | break; |
58 | 58 | #endif | |
59 | #ifdef HAVE_LINEIN_REC | ||
59 | case AUDIO_SRC_LINEIN: /* recording only */ | 60 | case AUDIO_SRC_LINEIN: /* recording only */ |
60 | if (source != last_source) | 61 | if (source != last_source) |
61 | { | 62 | { |
@@ -64,7 +65,7 @@ void audio_set_source(int source, unsigned flags) | |||
64 | } | 65 | } |
65 | break; | 66 | break; |
66 | #endif | 67 | #endif |
67 | #if CONFIG_TUNER | 68 | #ifdef HAVE_FMRADIO_REC |
68 | case AUDIO_SRC_FMRADIO: /* recording and playback */ | 69 | case AUDIO_SRC_FMRADIO: /* recording and playback */ |
69 | if (!recording) | 70 | if (!recording) |
70 | audiohw_set_recvol(0, 0, AUDIO_GAIN_LINEIN); | 71 | audiohw_set_recvol(0, 0, AUDIO_GAIN_LINEIN); |