summaryrefslogtreecommitdiff
path: root/sys/dev/pci/azalia_codec.c
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2009-09-09 02:06:05 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2009-09-09 02:06:05 +0000
commit2e7baea3a86085043bc858c8deb16ced7c959307 (patch)
tree1b8dc07a9dee7ca4e091062f48980994d6298bfe /sys/dev/pci/azalia_codec.c
parent96848e74fceda9b2a96d319a1901c7aedbe867dd (diff)
make sure node id for stream mode mixer items is valid
Diffstat (limited to 'sys/dev/pci/azalia_codec.c')
-rw-r--r--sys/dev/pci/azalia_codec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c
index da498262316..e27c23d5468 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.133 2009/06/26 01:48:22 jakemsr Exp $ */
+/* $OpenBSD: azalia_codec.c,v 1.134 2009/09/09 02:06:04 jakemsr Exp $ */
/* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */
/*-
@@ -1143,6 +1143,7 @@ azalia_mixer_init(codec_t *this)
d->type = AUDIO_MIXER_ENUM;
d->mixer_class = AZ_CLASS_OUTPUT;
m->target = MI_TARGET_DAC;
+ m->nid = this->audiofunc;
d->un.e.member[0].ord = 0;
strlcpy(d->un.e.member[0].label.name, "analog",
MAX_AUDIO_DEV_LEN);
@@ -1162,6 +1163,7 @@ azalia_mixer_init(codec_t *this)
d->type = AUDIO_MIXER_ENUM;
d->mixer_class = AZ_CLASS_RECORD;
m->target = MI_TARGET_ADC;
+ m->nid = this->audiofunc;
d->un.e.member[0].ord = 0;
strlcpy(d->un.e.member[0].label.name, "analog",
MAX_AUDIO_DEV_LEN);