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:
parent
df34a4767f
commit
2267bd37b2
1 changed files with 9 additions and 0 deletions
|
@ -135,6 +135,15 @@ void audio_set_input_source(int source, unsigned flags)
|
|||
{
|
||||
(void)source;
|
||||
(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 */
|
||||
|
||||
#ifdef HAVE_SPDIF_IN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue