1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Michael Chicoine 2010-06-01 14:20:33 +00:00
parent df34a4767f
commit 2267bd37b2

View file

@ -135,6 +135,15 @@ void audio_set_input_source(int source, unsigned flags)
{ {
(void)source; (void)source;
(void)flags; (void)flags;
#if CONFIG_TUNER
/* Switch radio off or on per source and flags. */
if (source != AUDIO_SRC_FMRADIO)
radio_stop();
else if (flags & SRCF_FMRADIO_PAUSED)
radio_pause();
else
radio_start();
#endif
} /* audio_set_input_source */ } /* audio_set_input_source */
#ifdef HAVE_SPDIF_IN #ifdef HAVE_SPDIF_IN