mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-06 13:29:59 -05:00
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>
This commit is contained in:
parent
13af48843d
commit
762fe145e9
1 changed files with 0 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue