summaryrefslogtreecommitdiff
path: root/firmware/drivers/wm8758.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/wm8758.c')
-rw-r--r--firmware/drivers/wm8758.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/firmware/drivers/wm8758.c b/firmware/drivers/wm8758.c
index ea670230b9..aec6f3b598 100644
--- a/firmware/drivers/wm8758.c
+++ b/firmware/drivers/wm8758.c
@@ -147,12 +147,6 @@ void wmcodec_enable_output(bool enable)
147 147
148int wmcodec_set_master_vol(int vol_l, int vol_r) 148int wmcodec_set_master_vol(int vol_l, int vol_r)
149{ 149{
150 /* +6 to -73dB 1dB steps (plus mute == 80levels) 7bits */
151 /* 1111111 == +6dB */
152 /* 1111001 == 0dB */
153 /* 0110000 == -73dB */
154 /* 0101111 == mute (0x2f) */
155
156 /* OUT1 */ 150 /* OUT1 */
157 wm8758_write(LOUT1VOL, vol_l); 151 wm8758_write(LOUT1VOL, vol_l);
158 wm8758_write(ROUT1VOL, 0x100 | vol_r); 152 wm8758_write(ROUT1VOL, 0x100 | vol_r);