mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Add support for the ipod FM remote to the 4G, Color, 5G, nano 1G with RDS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23805 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
63d79148fd
commit
0260852771
16 changed files with 881 additions and 54 deletions
|
|
@ -104,11 +104,17 @@ void audio_input_mux(int source, unsigned flags)
|
|||
if (!recording)
|
||||
audiohw_set_recvol(0x17, 0x17, AUDIO_GAIN_LINEIN);
|
||||
#endif
|
||||
|
||||
if (source == last_source && recording == last_recording)
|
||||
break;
|
||||
|
||||
last_recording = recording;
|
||||
|
||||
#if defined(IPOD_REMOTE_TUNER)
|
||||
/* Ipod FM tuner is in the remote connected to line-in */
|
||||
audiohw_enable_recording(false); /* source line */
|
||||
audiohw_set_monitor(true); /* enable bypass mode */
|
||||
#else
|
||||
if (recording)
|
||||
{
|
||||
audiohw_set_monitor(false); /* disable bypass mode */
|
||||
|
|
@ -119,6 +125,7 @@ void audio_input_mux(int source, unsigned flags)
|
|||
audiohw_disable_recording();
|
||||
audiohw_set_monitor(true); /* enable bypass mode */
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
#endif
|
||||
} /* end switch */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue