summaryrefslogtreecommitdiff
path: root/src/mixer/simple.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2009-11-23 10:56:46 +0100
committerClemens Ladisch <clemens@ladisch.de>2009-11-23 10:56:46 +0100
commit762fe145e9b5c1cff570629ca5ced7cbd252686f (patch)
tree7600df231a7a0458e4be0cdf8f065d4987474eb7 /src/mixer/simple.c
parent13af48843dcff5c4ab9e7bc4622f7cb7ff0dd0a7 (diff)
downloadalsa-lib-762fe145e9b5c1cff570629ca5ced7cbd252686f.tar.gz
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>
Diffstat (limited to 'src/mixer/simple.c')
-rw-r--r--src/mixer/simple.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mixer/simple.c b/src/mixer/simple.c
index 606fc3d8..8079fe7a 100644
--- a/src/mixer/simple.c
+++ b/src/mixer/simple.c
@@ -878,7 +878,6 @@ int snd_mixer_selem_set_capture_switch_all(snd_mixer_elem_t *elem, int value)
int snd_mixer_selem_is_enumerated(snd_mixer_elem_t *elem)
{
CHECK_BASIC(elem);
- CHECK_ENUM(elem);
return sm_selem_ops(elem)->is(elem, SM_PLAY, SM_OPS_IS_ENUMERATED, 0);
}