]> git.alsa-project.org Git - alsa-lib.git/commit
mixer: fix enum check
authorClemens Ladisch <clemens@ladisch.de>
Mon, 23 Nov 2009 09:56:46 +0000 (10:56 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Mon, 23 Nov 2009 09:56:46 +0000 (10:56 +0100)
commit762fe145e9b5c1cff570629ca5ced7cbd252686f
tree7600df231a7a0458e4be0cdf8f065d4987474eb7
parent13af48843dcff5c4ab9e7bc4622f7cb7ff0dd0a7
mixer: fix enum check

The recent CHECK_ENUM fix uncovered a bug in snd_mixer_selem_is_enumerated()
which would now return -EINVAL for any non-enum control, which would be
interpreted as 'true' by callers like amixer or alsamixer.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
src/mixer/simple.c