diff options
Diffstat (limited to 'firmware/target/arm/as3525/audio-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/audio-as3525.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/audio-as3525.c b/firmware/target/arm/as3525/audio-as3525.c index b616153eae..27cbaac3d8 100644 --- a/firmware/target/arm/as3525/audio-as3525.c +++ b/firmware/target/arm/as3525/audio-as3525.c | |||
@@ -47,7 +47,9 @@ void audio_input_mux(int source, unsigned flags) | |||
47 | case AUDIO_SRC_PLAYBACK: | 47 | case AUDIO_SRC_PLAYBACK: |
48 | if (source != last_source) | 48 | if (source != last_source) |
49 | { | 49 | { |
50 | #if defined(HAVE_RECORDING) || defined(HAVE_FMRADIO_IN) | ||
50 | audiohw_set_monitor(false); | 51 | audiohw_set_monitor(false); |
52 | #endif | ||
51 | #ifdef HAVE_RECORDING | 53 | #ifdef HAVE_RECORDING |
52 | audiohw_disable_recording(); | 54 | audiohw_disable_recording(); |
53 | #endif | 55 | #endif |
@@ -64,6 +66,8 @@ void audio_input_mux(int source, unsigned flags) | |||
64 | break; | 66 | break; |
65 | #endif | 67 | #endif |
66 | 68 | ||
69 | #if (INPUT_SRC_CAPS & SRC_CAP_FMRADIO) | ||
70 | |||
67 | case AUDIO_SRC_FMRADIO: /* recording and playback */ | 71 | case AUDIO_SRC_FMRADIO: /* recording and playback */ |
68 | if (source == last_source | 72 | if (source == last_source |
69 | #ifdef HAVE_RECORDING | 73 | #ifdef HAVE_RECORDING |
@@ -86,9 +90,12 @@ void audio_input_mux(int source, unsigned flags) | |||
86 | #ifdef HAVE_RECORDING | 90 | #ifdef HAVE_RECORDING |
87 | audiohw_disable_recording(); | 91 | audiohw_disable_recording(); |
88 | #endif | 92 | #endif |
93 | #if defined(HAVE_RECORDING) || defined(HAVE_FMRADIO_IN) | ||
89 | audiohw_set_monitor(true); /* line 2 analog audio path */ | 94 | audiohw_set_monitor(true); /* line 2 analog audio path */ |
95 | #endif | ||
90 | } | 96 | } |
91 | break; | 97 | break; |
98 | #endif /* (INPUT_SRC_CAPS & SRC_CAP_FMRADIO) */ | ||
92 | } | 99 | } |
93 | 100 | ||
94 | last_source = source; | 101 | last_source = source; |