[alsa-devel] snd_mixer_selem_get_playback_volume return value outside allowed range

Raymond Yau superquad.vortex2 at gmail.com
Fri Jun 18 01:39:07 CEST 2010

2010/6/17 Clemens Ladisch <clemens at ladisch.de>

> Raymond Yau wrote:
> > Should snd_mixer_selem_get_playback_volume() perform range check ?
> No, it's the responsibility of the control implementation to return
> valid values (and to check that values that are being set are valid).
> Regards,
> Clemens

If it is the responsibility of the driver/external plugin to keep the value
inside the allowed range

your patch actually help those buggy driver/external plugin hide the bug

More information about the Alsa-devel mailing list