mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Fix the handling of stereo capture source
Patch from bug#1610 The simple mixer doesn't handle the stereo "Capture Source" properly, wrongly set cswitch-joined.
This commit is contained in:
parent
aaeb6659c0
commit
33a40df1af
1 changed files with 3 additions and 1 deletions
|
|
@ -768,7 +768,9 @@ static int simple_update(snd_mixer_elem_t *melem)
|
|||
if (cchannels > 1) {
|
||||
if (simple->ctls[CTL_CAPTURE_ROUTE].elem ||
|
||||
(simple->ctls[CTL_CAPTURE_SWITCH].elem &&
|
||||
simple->ctls[CTL_CAPTURE_SWITCH].values > 1)) {
|
||||
simple->ctls[CTL_CAPTURE_SWITCH].values > 1) ||
|
||||
(simple->ctls[CTL_CAPTURE_SOURCE].elem &&
|
||||
simple->ctls[CTL_CAPTURE_SOURCE].values > 1)) {
|
||||
caps &= ~SM_CAP_CSWITCH_JOIN;
|
||||
}
|
||||
if (simple->ctls[CTL_CAPTURE_VOLUME].elem &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue