fix mixer to return properly scaled values

This commit is contained in:
cg 1999-11-22 16:20:48 +00:00
parent 9b1e083489
commit 0ab2393cbd

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