fix mixer to return properly scaled values

This commit is contained in:
Cameron Grant 1999-11-22 16:20:48 +00:00
parent 3ac8285030
commit 29618c3ae2

View File

@ -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);
}