forked from len0rd/rockbox
H300 FM radio support, with help from Peter D'Hoye
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8237 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c3387e545d
commit
a4b15a4f1f
6 changed files with 61 additions and 18 deletions
|
@ -905,6 +905,15 @@ static void pcmrec_thread(void)
|
|||
/* Select VINL & VINR source: 0=Line-in, 1=FM Radio */
|
||||
void pcm_rec_mux(int source)
|
||||
{
|
||||
#ifdef IRIVER_H300_SERIES
|
||||
if(source == 0)
|
||||
and_l(~0x40000000, &GPIO_OUT); /* Line In */
|
||||
else
|
||||
or_l(0x40000000, &GPIO_OUT); /* FM radio */
|
||||
|
||||
or_l(0x40000000, &GPIO_ENABLE);
|
||||
or_l(0x40000000, &GPIO_FUNCTION);
|
||||
#else
|
||||
if(source == 0)
|
||||
and_l(~0x00800000, &GPIO_OUT); /* Line In */
|
||||
else
|
||||
|
@ -912,4 +921,5 @@ void pcm_rec_mux(int source)
|
|||
|
||||
or_l(0x00800000, &GPIO_ENABLE);
|
||||
or_l(0x00800000, &GPIO_FUNCTION);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue