forked from len0rd/rockbox
really fix red builds this time
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12380 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
844583ce54
commit
ec73eb0be1
3 changed files with 4 additions and 4 deletions
|
|
@ -3280,7 +3280,7 @@ static void audio_stop_playback(void)
|
|||
|
||||
static void audio_play_start(size_t offset)
|
||||
{
|
||||
#if defined(HAVE_RECORDING) || defined(CONFIG_TUNER)
|
||||
#if defined(HAVE_RECORDING) || CONFIG_TUNER
|
||||
rec_set_source(AUDIO_SRC_PLAYBACK, SRCF_PLAYBACK);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -610,7 +610,7 @@ void rec_set_source(int source, unsigned flags)
|
|||
#endif /* !HAVE_SPDIF_POWER */
|
||||
|
||||
/** Tuner **/
|
||||
#ifdef CONFIG_TUNER
|
||||
#if CONFIG_TUNER
|
||||
/* Switch radio off or on per source and flags. */
|
||||
if (source != AUDIO_SRC_FMRADIO)
|
||||
radio_stop();
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ void audio_set_source(int source, unsigned flags)
|
|||
(void)flags;
|
||||
/* Prevent pops from unneeded switching */
|
||||
static int last_source = AUDIO_SRC_PLAYBACK;
|
||||
#ifdef CONFIG_TUNER
|
||||
#if CONFIG_TUNER
|
||||
static bool last_recording = false;
|
||||
#endif
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ void audio_set_source(int source, unsigned flags)
|
|||
}
|
||||
break;
|
||||
#endif
|
||||
#ifdef CONFIG_TUNER
|
||||
#if CONFIG_TUNER
|
||||
case AUDIO_SRC_FMRADIO: /* recording and playback */
|
||||
if (!recording)
|
||||
audiohw_set_recvol(0, 0, AUDIO_GAIN_LINEIN);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue