fix mixer to return properly scaled values
This commit is contained in:
parent
9b1e083489
commit
0ab2393cbd
@ -280,6 +280,9 @@ ad1816mix_set(snd_mixer *m, unsigned dev, unsigned left, unsigned right)
|
||||
break;
|
||||
}
|
||||
|
||||
left = ((AD1816_MUTE - left) * 100) / AD1816_MUTE;
|
||||
right = ((AD1816_MUTE - right) * 100) / AD1816_MUTE;
|
||||
|
||||
return left | (right << 8);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user