From: Takashi Iwai Date: Sun, 2 May 2004 11:59:08 +0000 (+0000) Subject: fixed the event handling of enum elements. X-Git-Tag: v1.0.5~18 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=70d2dd963dd7881e3a8257292651d481c00689fa;p=alsa-lib.git fixed the event handling of enum elements. --- diff --git a/src/mixer/simple.c b/src/mixer/simple.c index 42620b49..2e99e74c 100644 --- a/src/mixer/simple.c +++ b/src/mixer/simple.c @@ -329,8 +329,12 @@ static int selem_read(snd_mixer_elem_t *elem) csw = s->str[CAPT].sw; s->str[CAPT].sw = ~0U; - if (s->ctls[CTL_ENUMLIST].elem) - return elem_read_enum(s); + if (s->ctls[CTL_ENUMLIST].elem) { + err = elem_read_enum(s); + if (err < 0) + return err; + goto __skip_cswitch; + } if (s->ctls[CTL_PLAYBACK_VOLUME].elem) err = elem_read_volume(s, PLAY, CTL_PLAYBACK_VOLUME);