[alsa-devel] Negative volume steps?

Takashi Iwai tiwai at suse.de
Thu May 26 14:58:13 CEST 2011


At Thu, 26 May 2011 15:45:32 +0300,
Tanu Kaskinen wrote:
> 
> On Thu, 2011-05-26 at 14:25 +0200, Clemens Ladisch wrote:
> > Tanu Kaskinen wrote:
> > > If a driver claims that the lowest volume step (integer step, not dB) of
> > > a volume element is -126 and the highest step is 0, is the driver
> > > broken?
> > 
> > No.
> > 
> > > I'm asking, because apparently there are such drivers, but Pulseaudio
> > > currently assumes that the volume steps are never negative.
> > 
> > The maximum is higher than the minimum, so how would a step be negative?
> 
> By "step" I mean the step index, ie. the volume value, not the
> difference between two volumes.

A negative value is allowed although we are trying to avoid it
usually.  But some funky drivers may give such values.


Takashi


More information about the Alsa-devel mailing list