From b46702885e5d80a01429e63cd57b644a4e789196 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Sat, 8 Dec 2007 09:59:34 +0000 Subject: mixer_devinfo->type is uninitialized for classes --- sys/dev/pci/envy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci') 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 * @@ -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); -- cgit v1.2.3