FS#8046: H10 FM tuner support. Thanks to Przemyslaw Holubowski for doing the hard work in figuring out how to communicate with the tuner.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15578 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Barry Wardell 2007-11-11 16:00:33 +00:00
parent 496027d8bb
commit c495cdae59
9 changed files with 263 additions and 15 deletions

View file

@ -319,6 +319,15 @@ void audiohw_set_recvol(int left, int right, int type)
void audiohw_set_monitor(int enable)
{
/* TODO: Implement for FM monitoring */
(void)enable;
if(enable)
{
wm8731_regs[AAPCTRL] |= AAPCTRL_BYPASS;
wm8731_regs[AAPCTRL] &=~ (AAPCTRL_DACSEL | AAPCTRL_SIDETONE);
wm8731_write(AAPCTRL, wm8731_regs[AAPCTRL]);
}
else {
wm8731_regs[AAPCTRL] &=~ AAPCTRL_BYPASS;
wm8731_regs[AAPCTRL] |= AAPCTRL_DACSEL | AAPCTRL_SIDETONE;
wm8731_write(AAPCTRL, wm8731_regs[AAPCTRL]);
}
}