From: Takashi Iwai Date: Thu, 2 May 2002 10:58:10 +0000 (+0000) Subject: fixed the detection of playback switch. X-Git-Tag: v1.0.3~434 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=50be21e1e44cb83189cabb0026704238c9fda311;p=alsa-lib.git fixed the detection of playback switch. --- diff --git a/src/mixer/simple.c b/src/mixer/simple.c index 469e1f63..566ca68e 100644 --- a/src/mixer/simple.c +++ b/src/mixer/simple.c @@ -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; }