mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
fixed the detection of playback switch.
This commit is contained in:
parent
54ae06305d
commit
50be21e1e4
1 changed files with 2 additions and 1 deletions
|
|
@ -730,7 +730,8 @@ static int simple_update(snd_mixer_elem_t *melem)
|
|||
}
|
||||
|
||||
/* exceptions */
|
||||
if ((caps & (CAP_GSWITCH|CAP_PSWITCH|CAP_CSWITCH)) == (caps & CAP_GSWITCH)) {
|
||||
if ((caps & (CAP_GSWITCH|CAP_PSWITCH|CAP_CSWITCH)) &&
|
||||
(caps & (CAP_GSWITCH|CAP_PSWITCH|CAP_CSWITCH)) == (caps & CAP_GSWITCH)) {
|
||||
caps &= ~(CAP_GSWITCH|CAP_CSWITCH_JOIN|CAP_CSWITCH_EXCL);
|
||||
caps |= CAP_PSWITCH;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue