mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-19 08:57:08 -05:00
Fixed capture source handling
This commit is contained in:
parent
4c9fb56172
commit
d16192f6f2
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
/**
|
/*
|
||||||
* \file mixer/simple.c
|
* \file mixer/simple.c
|
||||||
* \author Jaroslav Kysela <perex@suse.cz>
|
* \author Jaroslav Kysela <perex@suse.cz>
|
||||||
* \author Abramo Bagnara <abramo@alsa-project.org>
|
* \author Abramo Bagnara <abramo@alsa-project.org>
|
||||||
|
|
@ -442,6 +442,8 @@ static int selem_write(snd_mixer_elem_t *elem)
|
||||||
}
|
}
|
||||||
if ((err = snd_hctl_elem_write(c->elem, &ctl)) < 0)
|
if ((err = snd_hctl_elem_write(c->elem, &ctl)) < 0)
|
||||||
return err;
|
return err;
|
||||||
|
/* update the element, don't remove */
|
||||||
|
return selem_read(elem);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue