From c7304fafd435d5148cc4fec5a6ed0daba98bc955 Mon Sep 17 00:00:00 2001 From: Jacob Meuser Date: Fri, 26 Dec 2008 10:07:49 +0000 Subject: don't try to create mutesets for selectors, they are only for mixers. problem noticed by Tas. thanks! --- sys/dev/pci/azalia_codec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev/pci') diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c index 2c054eb7074..81173b606e6 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.96 2008/12/26 08:23:18 jakemsr Exp $ */ +/* $OpenBSD: azalia_codec.c,v 1.97 2008/12/26 10:07:48 jakemsr Exp $ */ /* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */ /*- @@ -597,8 +597,7 @@ azalia_generic_mixer_init(codec_t *this) /* input mute */ if (w->widgetcap & COP_AWCAP_INAMP && w->inamp_cap & COP_AMPCAP_MUTE) { - if (w->type != COP_AWTYPE_AUDIO_SELECTOR && - w->type != COP_AWTYPE_AUDIO_MIXER) { + if (w->type != COP_AWTYPE_AUDIO_MIXER) { MIXER_REG_PROLOG; snprintf(d->label.name, sizeof(d->label.name), "%s_mute", w->name); -- cgit v1.2.3