diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-12-22 03:47:17 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-12-22 03:47:17 +0000 |
commit | 56deebd9548483b798423fa839262a719a3f4bde (patch) | |
tree | 7d8b5adc8c9f622a4e81b6e11dcb6286da210d37 /sys/dev/pci/azalia_codec.c | |
parent | a21b5ac255a68837c7dc29a570707fb05c20775d (diff) |
create "_source" mixer items for single connections, but be careful
to not be redundant. important for understanding how widgets are
connected.
Diffstat (limited to 'sys/dev/pci/azalia_codec.c')
-rw-r--r-- | sys/dev/pci/azalia_codec.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c index c08cf1752c1..692f6018d4d 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.83 2008/12/22 02:20:22 jakemsr Exp $ */ +/* $OpenBSD: azalia_codec.c,v 1.84 2008/12/22 03:47:16 jakemsr Exp $ */ /* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */ /*- @@ -528,7 +528,9 @@ azalia_generic_mixer_init(codec_t *this) continue; /* selector */ - if (w->type != COP_AWTYPE_AUDIO_MIXER && w->nconnections >= 2) { + if (w->type != COP_AWTYPE_AUDIO_MIXER && w->nconnections > 0 && + !(w->nconnections == 1 && + strcmp(w->name, this->w[w->connections[0]].name) == 0)) { MIXER_REG_PROLOG; snprintf(d->label.name, sizeof(d->label.name), "%s_source", w->name); |