fixed the event handling of enum elements.

This commit is contained in:
Takashi Iwai 2004-05-02 11:59:08 +00:00
parent ef11ba77ed
commit 70d2dd963d

View file

@ -329,8 +329,12 @@ static int selem_read(snd_mixer_elem_t *elem)
csw = s->str[CAPT].sw; csw = s->str[CAPT].sw;
s->str[CAPT].sw = ~0U; s->str[CAPT].sw = ~0U;
if (s->ctls[CTL_ENUMLIST].elem) if (s->ctls[CTL_ENUMLIST].elem) {
return elem_read_enum(s); err = elem_read_enum(s);
if (err < 0)
return err;
goto __skip_cswitch;
}
if (s->ctls[CTL_PLAYBACK_VOLUME].elem) if (s->ctls[CTL_PLAYBACK_VOLUME].elem)
err = elem_read_volume(s, PLAY, CTL_PLAYBACK_VOLUME); err = elem_read_volume(s, PLAY, CTL_PLAYBACK_VOLUME);