forked from len0rd/rockbox
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
This commit is contained in:
parent
f7d8b2db93
commit
b210a3a8cb
1 changed files with 4 additions and 0 deletions
|
@ -157,6 +157,10 @@ void audiohw_set_volume(int vol_l, int vol_r)
|
|||
void audiohw_set_lineout_volume(int vol_l, int vol_r)
|
||||
{
|
||||
int dac_l, amp_l, dac_r, amp_r;
|
||||
|
||||
vol_l = vol_tenthdb2hw(vol_l);
|
||||
vol_r = vol_tenthdb2hw(vol_r);
|
||||
|
||||
get_volume_params(vol_l, &dac_l, &_l);
|
||||
get_volume_params(vol_r, &dac_r, &_r);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue