summaryrefslogtreecommitdiff
path: root/firmware/drivers/audio/wm8731.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/audio/wm8731.c')
-rw-r--r--firmware/drivers/audio/wm8731.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/drivers/audio/wm8731.c b/firmware/drivers/audio/wm8731.c
index e0e7cb38c0..7d25849158 100644
--- a/firmware/drivers/audio/wm8731.c
+++ b/firmware/drivers/audio/wm8731.c
@@ -188,7 +188,7 @@ void audiohw_postinit(void)
188#endif 188#endif
189} 189}
190 190
191int audiohw_set_master_vol(int vol_l, int vol_r) 191void audiohw_set_master_vol(int vol_l, int vol_r)
192{ 192{
193 /* +6 to -73dB 1dB steps (plus mute == 80levels) 7bits */ 193 /* +6 to -73dB 1dB steps (plus mute == 80levels) 7bits */
194 /* 1111111 == +6dB */ 194 /* 1111111 == +6dB */
@@ -197,7 +197,6 @@ int audiohw_set_master_vol(int vol_l, int vol_r)
197 /* 0101111 == mute (0x2f) */ 197 /* 0101111 == mute (0x2f) */
198 wm8731_write(LOUTVOL, LOUTVOL_LZCEN | (vol_l & LOUTVOL_LHPVOL_MASK)); 198 wm8731_write(LOUTVOL, LOUTVOL_LZCEN | (vol_l & LOUTVOL_LHPVOL_MASK));
199 wm8731_write(ROUTVOL, ROUTVOL_RZCEN | (vol_r & ROUTVOL_RHPVOL_MASK)); 199 wm8731_write(ROUTVOL, ROUTVOL_RZCEN | (vol_r & ROUTVOL_RHPVOL_MASK));
200 return 0;
201} 200}
202 201
203/* Nice shutdown of WM8731 codec */ 202/* Nice shutdown of WM8731 codec */