summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjakemsr <jakemsr@openbsd.org>2010-06-27 17:42:27 +0000
committerjakemsr <jakemsr@openbsd.org>2010-06-27 17:42:27 +0000
commit198968f6aceff2c8ad21b0aaeebf13c0a5f72c7a (patch)
tree719405cd1dfff1aa1b42791465b5305f391a1e57 /sys
parentGCC is being intelligent with our asm statements that were used to pad stuff (diff)
downloadwireguard-openbsd-198968f6aceff2c8ad21b0aaeebf13c0a5f72c7a.tar.xz
wireguard-openbsd-198968f6aceff2c8ad21b0aaeebf13c0a5f72c7a.zip
check if the jacks that will mute the speaker can generate unsolicited
events, instead of checking if the speaker can generate unsolicited events problem report and testing by Brad, thanks
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/azalia_codec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c
index f4d98186c01..a2e46237077 100644
--- a/sys/dev/pci/azalia_codec.c
+++ b/sys/dev/pci/azalia_codec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia_codec.c,v 1.145 2010/06/27 01:13:25 jakemsr Exp $ */
+/* $OpenBSD: azalia_codec.c,v 1.146 2010/06/27 17:42:27 jakemsr Exp $ */
/* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */
/*-
@@ -1043,9 +1043,9 @@ azalia_mixer_init(codec_t *this)
this->spkr_muters = 0;
for (i = 0, j = 0; i < this->nsense_pins; i++) {
ww = &this->w[this->sense_pins[i]];
- if (!(w->d.pin.cap & COP_PINCAP_OUTPUT))
+ if (!(ww->d.pin.cap & COP_PINCAP_OUTPUT))
continue;
- if (!(w->widgetcap & COP_AWCAP_UNSOL))
+ if (!(ww->widgetcap & COP_AWCAP_UNSOL))
continue;
d->un.s.member[j].mask = 1 << i;
this->spkr_muters |= (1 << i);