diff options
Diffstat (limited to 'firmware/drivers/audio/wm8751.c')
-rw-r--r-- | firmware/drivers/audio/wm8751.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/firmware/drivers/audio/wm8751.c b/firmware/drivers/audio/wm8751.c index f228c170c8..831f16ab17 100644 --- a/firmware/drivers/audio/wm8751.c +++ b/firmware/drivers/audio/wm8751.c | |||
@@ -164,7 +164,7 @@ void audiohw_postinit(void) | |||
164 | #endif | 164 | #endif |
165 | } | 165 | } |
166 | 166 | ||
167 | int audiohw_set_master_vol(int vol_l, int vol_r) | 167 | void audiohw_set_master_vol(int vol_l, int vol_r) |
168 | { | 168 | { |
169 | /* +6 to -73dB 1dB steps (plus mute == 80levels) 7bits */ | 169 | /* +6 to -73dB 1dB steps (plus mute == 80levels) 7bits */ |
170 | /* 1111111 == +6dB */ | 170 | /* 1111111 == +6dB */ |
@@ -174,15 +174,13 @@ int audiohw_set_master_vol(int vol_l, int vol_r) | |||
174 | 174 | ||
175 | wmcodec_write(LOUT1, LOUT1_BITS | LOUT1_LOUT1VOL(vol_l)); | 175 | wmcodec_write(LOUT1, LOUT1_BITS | LOUT1_LOUT1VOL(vol_l)); |
176 | wmcodec_write(ROUT1, ROUT1_BITS | ROUT1_ROUT1VOL(vol_r)); | 176 | wmcodec_write(ROUT1, ROUT1_BITS | ROUT1_ROUT1VOL(vol_r)); |
177 | return 0; | ||
178 | } | 177 | } |
179 | 178 | ||
180 | #ifndef MROBE_100 | 179 | #ifndef MROBE_100 |
181 | int audiohw_set_lineout_vol(int vol_l, int vol_r) | 180 | void audiohw_set_lineout_vol(int vol_l, int vol_r) |
182 | { | 181 | { |
183 | wmcodec_write(LOUT2, LOUT2_BITS | LOUT2_LOUT2VOL(vol_l)); | 182 | wmcodec_write(LOUT2, LOUT2_BITS | LOUT2_LOUT2VOL(vol_l)); |
184 | wmcodec_write(ROUT2, ROUT2_BITS | ROUT2_ROUT2VOL(vol_r)); | 183 | wmcodec_write(ROUT2, ROUT2_BITS | ROUT2_ROUT2VOL(vol_r)); |
185 | return 0; | ||
186 | } | 184 | } |
187 | #endif | 185 | #endif |
188 | 186 | ||