fixed the detection of playback switch.

This commit is contained in:
Takashi Iwai 2002-05-02 10:58:10 +00:00
parent 54ae06305d
commit 50be21e1e4

View file

@ -730,7 +730,8 @@ static int simple_update(snd_mixer_elem_t *melem)
} }
/* exceptions */ /* 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_GSWITCH|CAP_CSWITCH_JOIN|CAP_CSWITCH_EXCL);
caps |= CAP_PSWITCH; caps |= CAP_PSWITCH;
} }