[alsa-devel] Bug in alsa-lib or alsamixer and amixer

James Courtier-Dutton james.dutton at gmail.com
Thu Jun 17 09:15:36 CEST 2010

On 17 June 2010 00:34, Raymond Yau <superquad.vortex2 at gmail.com> wrote:
> 2010/6/17 Colin Guthrie <gmane at colin.guthr.ie>
>>> But this sucks as
>>> the percentage shown in alsa is not the same as the percentage shown in
>>> other GUIs.
> alsamixer and amixer 's percentage were not designed as your purpose
> Have you studied the source code of alsamixer and amixer
> the alsa developers have already posted a lot of time in the mailist list ,
> they prefer to use dB scale instead of percentage

That is exactly why percentages are bad. One cannot relate one control
to another if one used percentages.
Say that an  audio card had two controls that adjust the gain of the
audio one after the other.
If I set to to 5% above base_volume and the second 5% below
base_volume, would the output be base_volume???
the first 5% might be +5dB, and the second might be -4dB, one does not know.

Whereas, in dB, if one was set to -5dB, and the other set to +5dB, we
would be sure that the accumulative output would have a gain of 0dB.
Percentages are not nor real units at all, dB are.

Kind Regards


More information about the Alsa-devel mailing list