mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
fixed the event handling of enum elements.
This commit is contained in:
parent
ef11ba77ed
commit
70d2dd963d
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue