diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/audio_path.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/audio_path.c b/apps/audio_path.c index e928880998..0469d4412a 100644 --- a/apps/audio_path.c +++ b/apps/audio_path.c | |||
@@ -135,6 +135,15 @@ void audio_set_input_source(int source, unsigned flags) | |||
135 | { | 135 | { |
136 | (void)source; | 136 | (void)source; |
137 | (void)flags; | 137 | (void)flags; |
138 | #if CONFIG_TUNER | ||
139 | /* Switch radio off or on per source and flags. */ | ||
140 | if (source != AUDIO_SRC_FMRADIO) | ||
141 | radio_stop(); | ||
142 | else if (flags & SRCF_FMRADIO_PAUSED) | ||
143 | radio_pause(); | ||
144 | else | ||
145 | radio_start(); | ||
146 | #endif | ||
138 | } /* audio_set_input_source */ | 147 | } /* audio_set_input_source */ |
139 | 148 | ||
140 | #ifdef HAVE_SPDIF_IN | 149 | #ifdef HAVE_SPDIF_IN |