fix mixer to return properly scaled values
This commit is contained in:
parent
3ac8285030
commit
29618c3ae2
@ -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