1
0
Fork 0
forked from len0rd/rockbox

Accept FS#7178 - Sansa e200 FM tuner support by Ivan Zupan. Do the needed integration work into recording and the AS3514 audio driver. Do a little AS3514 fiq_record tweak to have it all work nicely from the start.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13573 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2007-06-06 19:23:48 +00:00
parent af4cd0a84c
commit 21a4a87ca2
12 changed files with 1039 additions and 39 deletions

View file

@ -42,11 +42,8 @@ void audio_set_output_source(int source)
void audio_set_source(int source, unsigned flags)
{
static int last_source = AUDIO_SRC_PLAYBACK;
#if 0
static bool last_recording = false;
bool recording = flags & SRCF_RECORDING;
#endif
(void)flags;
switch (source)
{
@ -70,13 +67,9 @@ void audio_set_source(int source, unsigned flags)
}
break;
#if 0
case AUDIO_SRC_FMRADIO: /* recording and playback */
audio_channels = 2;
if (!recording)
audiohw_set_recvol(23, 23, AUDIO_GAIN_LINEIN);
if (source == last_source && recording == last_recording)
break;
@ -92,9 +85,7 @@ void audio_set_source(int source, unsigned flags)
audiohw_disable_recording();
audiohw_set_monitor(true); /* line 1 analog audio path */
}
break;
#endif
} /* end switch */
last_source = source;