diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2007-12-08 09:59:34 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2007-12-08 09:59:34 +0000 |
commit | b46702885e5d80a01429e63cd57b644a4e789196 (patch) | |
tree | 61ed935a92891ab6bab4c3bea2674c0b1bf187b9 | |
parent | 49ff01f0dc55da8fc0a240405983cf26512be7b9 (diff) |
mixer_devinfo->type is uninitialized for classes
-rw-r--r-- | sys/dev/pci/envy.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/envy.c b/sys/dev/pci/envy.c index be0d5135954..53d8be56b7e 100644 --- a/sys/dev/pci/envy.c +++ b/sys/dev/pci/envy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: envy.c,v 1.2 2007/10/28 18:25:21 fgsch Exp $ */ +/* $OpenBSD: envy.c,v 1.3 2007/12/08 09:59:33 ratchov Exp $ */ /* * Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org> * @@ -843,6 +843,7 @@ envy_query_devinfo(void *self, struct mixer_devinfo *dev) dev->prev = dev->next = AUDIO_MIXER_LAST; if (dev->index < ENVY_MIX_OUTSRC) { + dev->type = AUDIO_MIXER_CLASS; dev->mixer_class = dev->index - ENVY_MIX_CLASSIN; strlcpy(dev->label.name, classes[dev->index - ENVY_MIX_CLASSIN], MAX_AUDIO_DEV_LEN); |