diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2007-11-11 16:00:33 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2007-11-11 16:00:33 +0000 |
commit | c495cdae5926c9245d7c943c72a97206d4a0e22a (patch) | |
tree | 86afcd473d1c151ffd26fcb8e941be44a0bbbf53 /firmware/drivers/audio/wm8731.c | |
parent | 496027d8bb89ba6d503b544f5652f4d1683d43af (diff) | |
download | rockbox-c495cdae5926c9245d7c943c72a97206d4a0e22a.tar.gz rockbox-c495cdae5926c9245d7c943c72a97206d4a0e22a.zip |
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
Diffstat (limited to 'firmware/drivers/audio/wm8731.c')
-rw-r--r-- | firmware/drivers/audio/wm8731.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/firmware/drivers/audio/wm8731.c b/firmware/drivers/audio/wm8731.c index 785cb2a91c..44aeefe791 100644 --- a/firmware/drivers/audio/wm8731.c +++ b/firmware/drivers/audio/wm8731.c | |||
@@ -319,6 +319,15 @@ void audiohw_set_recvol(int left, int right, int type) | |||
319 | 319 | ||
320 | void audiohw_set_monitor(int enable) | 320 | void audiohw_set_monitor(int enable) |
321 | { | 321 | { |
322 | /* TODO: Implement for FM monitoring */ | 322 | if(enable) |
323 | (void)enable; | 323 | { |
324 | wm8731_regs[AAPCTRL] |= AAPCTRL_BYPASS; | ||
325 | wm8731_regs[AAPCTRL] &=~ (AAPCTRL_DACSEL | AAPCTRL_SIDETONE); | ||
326 | wm8731_write(AAPCTRL, wm8731_regs[AAPCTRL]); | ||
327 | } | ||
328 | else { | ||
329 | wm8731_regs[AAPCTRL] &=~ AAPCTRL_BYPASS; | ||
330 | wm8731_regs[AAPCTRL] |= AAPCTRL_DACSEL | AAPCTRL_SIDETONE; | ||
331 | wm8731_write(AAPCTRL, wm8731_regs[AAPCTRL]); | ||
332 | } | ||
324 | } | 333 | } |