1
0
Fork 0
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:
Jonathan Gordon 2007-02-18 02:34:36 +00:00
parent 844583ce54
commit ec73eb0be1
3 changed files with 4 additions and 4 deletions

View file

@ -3280,7 +3280,7 @@ static void audio_stop_playback(void)
static void audio_play_start(size_t offset) 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); rec_set_source(AUDIO_SRC_PLAYBACK, SRCF_PLAYBACK);
#endif #endif

View file

@ -610,7 +610,7 @@ void rec_set_source(int source, unsigned flags)
#endif /* !HAVE_SPDIF_POWER */ #endif /* !HAVE_SPDIF_POWER */
/** Tuner **/ /** Tuner **/
#ifdef CONFIG_TUNER #if CONFIG_TUNER
/* Switch radio off or on per source and flags. */ /* Switch radio off or on per source and flags. */
if (source != AUDIO_SRC_FMRADIO) if (source != AUDIO_SRC_FMRADIO)
radio_stop(); radio_stop();

View file

@ -32,7 +32,7 @@ void audio_set_source(int source, unsigned flags)
(void)flags; (void)flags;
/* Prevent pops from unneeded switching */ /* Prevent pops from unneeded switching */
static int last_source = AUDIO_SRC_PLAYBACK; static int last_source = AUDIO_SRC_PLAYBACK;
#ifdef CONFIG_TUNER #if CONFIG_TUNER
static bool last_recording = false; static bool last_recording = false;
#endif #endif
@ -64,7 +64,7 @@ void audio_set_source(int source, unsigned flags)
} }
break; break;
#endif #endif
#ifdef CONFIG_TUNER #if CONFIG_TUNER
case AUDIO_SRC_FMRADIO: /* recording and playback */ case AUDIO_SRC_FMRADIO: /* recording and playback */
if (!recording) if (!recording)
audiohw_set_recvol(0, 0, AUDIO_GAIN_LINEIN); audiohw_set_recvol(0, 0, AUDIO_GAIN_LINEIN);