diff options
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/radio.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/apps/recorder/radio.c b/apps/recorder/radio.c index a29620b46c..1d39fefd21 100644 --- a/apps/recorder/radio.c +++ b/apps/recorder/radio.c | |||
@@ -245,6 +245,15 @@ void radio_stop(void) | |||
245 | radio_set(RADIO_SLEEP, 1); /* low power mode, if available */ | 245 | radio_set(RADIO_SLEEP, 1); /* low power mode, if available */ |
246 | radio_status = FMRADIO_OFF; | 246 | radio_status = FMRADIO_OFF; |
247 | radio_power(false); /* status update, power off if avail. */ | 247 | radio_power(false); /* status update, power off if avail. */ |
248 | |||
249 | #ifndef SIMULATOR /* SIMULATOR. Catch FMRADIO_OFF status for the sim. */ | ||
250 | #if CONFIG_CODEC == SWCODEC | ||
251 | #ifdef HAVE_TLV320 | ||
252 | tlv320_set_monitor(false); | ||
253 | #endif | ||
254 | pcm_rec_mux(0); /* Line In */ | ||
255 | #endif | ||
256 | #endif /* SIMULATOR */ | ||
248 | } | 257 | } |
249 | 258 | ||
250 | bool radio_hardware_present(void) | 259 | bool radio_hardware_present(void) |
@@ -1044,17 +1053,9 @@ bool radio_screen(void) | |||
1044 | else | 1053 | else |
1045 | { | 1054 | { |
1046 | radio_stop(); | 1055 | radio_stop(); |
1047 | #ifndef SIMULATOR /* SIMULATOR. Catch FMRADIO_OFF status for the sim. */ | ||
1048 | #if CONFIG_CODEC == SWCODEC | 1056 | #if CONFIG_CODEC == SWCODEC |
1049 | #ifdef HAVE_TLV320 | ||
1050 | //tlv320_disable_recording(); | ||
1051 | tlv320_set_monitor(false); | ||
1052 | #endif | ||
1053 | |||
1054 | pcm_rec_mux(0); /* Line In */ | ||
1055 | peak_meter_enabled = true; | 1057 | peak_meter_enabled = true; |
1056 | #endif | 1058 | #endif |
1057 | #endif /* SIMULATOR */ | ||
1058 | } | 1059 | } |
1059 | 1060 | ||
1060 | cpu_idle_mode(false); | 1061 | cpu_idle_mode(false); |