summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2009-01-24 09:44:03 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2009-01-24 09:44:03 +0000
commit9788989aadd55035b6323481429d0dada759c743 (patch)
treea7633d9fad2efd16810aff8817926977bc5ba454 /sys
parent955c89f19a405f4959a81d03e2113ee8828e3b41 (diff)
fix a couple mistakes from rev 1.109
dmesg spam produced by the mistakes noticed by stsp@, thanks
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/azalia_codec.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c
index b7dba2d3908..95343d0f788 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.113 2009/01/07 07:19:39 marco Exp $ */
+/* $OpenBSD: azalia_codec.c,v 1.114 2009/01/24 09:44:02 jakemsr Exp $ */
/* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */
/*-
@@ -1193,8 +1193,7 @@ azalia_generic_mixer_default(codec_t *this)
/* unmute all */
for (i = 0; i < this->nmixers; i++) {
m = &this->mixers[i];
- if (m->target != MI_TARGET_MUTESET &&
- m->target != MI_TARGET_MIXERSET)
+ if (m->target != MI_TARGET_MUTESET)
continue;
if (m->devinfo.type != AUDIO_MIXER_SET)
continue;
@@ -1927,7 +1926,7 @@ azalia_generic_mixer_set(codec_t *this, nid_t nid, int target,
}
}
- else if (target == MI_TARGET_MUTESET && mc->type == AUDIO_MIXER_SET) {
+ else if (target == MI_TARGET_MIXERSET && mc->type == AUDIO_MIXER_SET) {
/* do nothing, control is read only */
}