diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2009-09-09 02:06:05 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2009-09-09 02:06:05 +0000 |
commit | 2e7baea3a86085043bc858c8deb16ced7c959307 (patch) | |
tree | 1b8dc07a9dee7ca4e091062f48980994d6298bfe /sys | |
parent | 96848e74fceda9b2a96d319a1901c7aedbe867dd (diff) |
make sure node id for stream mode mixer items is valid
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/azalia_codec.c | 4 |
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); |