mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Backport r26446 - Perform radio_start, radio_pause, radio_stop in simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_6@26447 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4d06fd9fe1
commit
45a197b2c8
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