summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Chicoine <mc2739@gmail.com>2010-06-01 14:20:33 +0000
committerMichael Chicoine <mc2739@gmail.com>2010-06-01 14:20:33 +0000
commit2267bd37b275879ec43e39df5d21ce44a91c742c (patch)
tree31be4e5bd3ba9c15a2e207e46b663e9c2e049544
parentdf34a4767f9cb1478eb5e231484bba9124422c38 (diff)
downloadrockbox-2267bd37b275879ec43e39df5d21ce44a91c742c.tar.gz
rockbox-2267bd37b275879ec43e39df5d21ce44a91c742c.zip
Perform radio_start, radio_pause, radio_stop in simulator.
This will allow the radio frequency to be set properly on radio start (currently the frequency is initialized to 0) and prevents sim crashes when loading FMS. It also corrects various FMS token display problems in the sim. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26446 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/audio_path.c9
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