summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/audio/wm8731.c13
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
320void audiohw_set_monitor(int enable) 320void 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}