summaryrefslogtreecommitdiff
path: root/sys/dev/pci/azalia_codec.c
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2010-06-27 17:42:28 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2010-06-27 17:42:28 +0000
commit0ae6f1efcfde031da00c0710ce71bd74fd9ae179 (patch)
tree92045a06d0091553aa889d2e487f88cc7528320a /sys/dev/pci/azalia_codec.c
parent3249f0965fee5ecd600f675c344c87bda1727da4 (diff)
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/dev/pci/azalia_codec.c')
-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);