diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-07-25 12:51:33 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-07-25 12:51:33 +0000 |
commit | 8bb4bab54b580b36d819e4e4fcc864a3335ef270 (patch) | |
tree | 2b86042678e28b1aac6eac70d708e9e3fb69493e /apps | |
parent | 8218d471ccd3b081ce06af484a6c10decae1db80 (diff) |
Turn off FM radio properly when starting playback, fixes FS#5706
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10321 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-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) radio_set(RADIO_SLEEP, 1); /* low power mode, if available */ radio_status = FMRADIO_OFF; radio_power(false); /* status update, power off if avail. */ + +#ifndef SIMULATOR /* SIMULATOR. Catch FMRADIO_OFF status for the sim. */ +#if CONFIG_CODEC == SWCODEC +#ifdef HAVE_TLV320 + tlv320_set_monitor(false); +#endif + pcm_rec_mux(0); /* Line In */ +#endif +#endif /* SIMULATOR */ } bool radio_hardware_present(void) @@ -1044,17 +1053,9 @@ bool radio_screen(void) else { radio_stop(); -#ifndef SIMULATOR /* SIMULATOR. Catch FMRADIO_OFF status for the sim. */ #if CONFIG_CODEC == SWCODEC -#ifdef HAVE_TLV320 - //tlv320_disable_recording(); - tlv320_set_monitor(false); -#endif - - pcm_rec_mux(0); /* Line In */ peak_meter_enabled = true; #endif -#endif /* SIMULATOR */ } cpu_idle_mode(false); |