diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2013-05-09 15:37:56 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2013-05-09 15:37:56 -0400 |
commit | b210a3a8cbfa887528a6082920c66e629f1d9bc4 (patch) | |
tree | 224c724ffe7417854d899afb71cfc6b5695f0ff6 | |
parent | f7d8b2db9393004df796b4b7d9a8f66f547c6bef (diff) | |
download | rockbox-b210a3a8cbfa887528a6082920c66e629f1d9bc4.tar.gz rockbox-b210a3a8cbfa887528a6082920c66e629f1d9bc4.zip |
Fix FS#12860 - iPod 5g line out silent
Conversion from centibels to register values was left out of
audiohw_set_lineout_volume().
Credit goes to Dave Marsh for providing the fix.
Just another little oversight from sound/audiohw rework.
Change-Id: I7f8b1c5fb575ac95b5d595c2f4824fbb5ebbd3c8
-rw-r--r-- | firmware/drivers/audio/wm8758.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/drivers/audio/wm8758.c b/firmware/drivers/audio/wm8758.c index f7d7a5bc22..93ea7c2d6c 100644 --- a/firmware/drivers/audio/wm8758.c +++ b/firmware/drivers/audio/wm8758.c | |||
@@ -157,6 +157,10 @@ void audiohw_set_volume(int vol_l, int vol_r) | |||
157 | void audiohw_set_lineout_volume(int vol_l, int vol_r) | 157 | void audiohw_set_lineout_volume(int vol_l, int vol_r) |
158 | { | 158 | { |
159 | int dac_l, amp_l, dac_r, amp_r; | 159 | int dac_l, amp_l, dac_r, amp_r; |
160 | |||
161 | vol_l = vol_tenthdb2hw(vol_l); | ||
162 | vol_r = vol_tenthdb2hw(vol_r); | ||
163 | |||
160 | get_volume_params(vol_l, &dac_l, &_l); | 164 | get_volume_params(vol_l, &dac_l, &_l); |
161 | get_volume_params(vol_r, &dac_r, &_r); | 165 | get_volume_params(vol_r, &dac_r, &_r); |
162 | 166 | ||