diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2008-02-13 11:19:23 +0000 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2008-02-13 11:19:23 +0000 |
commit | 06971be8cd75234e76adab165e8c28275b2ab080 (patch) | |
tree | 34498a163bde93236c61e5980ed6adf4003f16c3 /firmware/drivers/audio/as3514.c | |
parent | c3213e40ad9c9b58d28e82255f839abb4505acff (diff) | |
download | rockbox-06971be8cd75234e76adab165e8c28275b2ab080.tar.gz rockbox-06971be8cd75234e76adab165e8c28275b2ab080.zip |
Return value of audiohw_set_xxx_vol is never used and most of the time we have a return 0; --> kick it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16300 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/audio/as3514.c')
-rw-r--r-- | firmware/drivers/audio/as3514.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c index 80ada46f80..08d4d538a4 100644 --- a/firmware/drivers/audio/as3514.c +++ b/firmware/drivers/audio/as3514.c | |||
@@ -218,7 +218,7 @@ void audiohw_enable_output(bool enable) | |||
218 | } | 218 | } |
219 | } | 219 | } |
220 | 220 | ||
221 | int audiohw_set_master_vol(int vol_l, int vol_r) | 221 | void audiohw_set_master_vol(int vol_l, int vol_r) |
222 | { | 222 | { |
223 | unsigned int hph_r = as3514.regs[HPH_OUT_R] & ~0x1f; | 223 | unsigned int hph_r = as3514.regs[HPH_OUT_R] & ~0x1f; |
224 | unsigned int hph_l = as3514.regs[HPH_OUT_L] & ~0x1f; | 224 | unsigned int hph_l = as3514.regs[HPH_OUT_L] & ~0x1f; |
@@ -262,16 +262,12 @@ int audiohw_set_master_vol(int vol_l, int vol_r) | |||
262 | as3514_write(mix_reg_l, mix_l); | 262 | as3514_write(mix_reg_l, mix_l); |
263 | as3514_write(HPH_OUT_R, hph_r); | 263 | as3514_write(HPH_OUT_R, hph_r); |
264 | as3514_write(HPH_OUT_L, hph_l); | 264 | as3514_write(HPH_OUT_L, hph_l); |
265 | |||
266 | return 0; | ||
267 | } | 265 | } |
268 | 266 | ||
269 | int audiohw_set_lineout_vol(int vol_l, int vol_r) | 267 | void audiohw_set_lineout_vol(int vol_l, int vol_r) |
270 | { | 268 | { |
271 | as3514_write(LINE_OUT_R, vol_r); | 269 | as3514_write(LINE_OUT_R, vol_r); |
272 | as3514_write(LINE_OUT_L, (1 << 6) | vol_l); | 270 | as3514_write(LINE_OUT_L, (1 << 6) | vol_l); |
273 | |||
274 | return 0; | ||
275 | } | 271 | } |
276 | 272 | ||
277 | void audiohw_mute(bool mute) | 273 | void audiohw_mute(bool mute) |