diff options
author | 2007-12-16 18:48:19 +0000 | |
---|---|---|
committer | 2007-12-16 18:48:19 +0000 | |
commit | f55fac6c627a93cd99ba24977a28e185375dd2a4 (patch) | |
tree | c80fdfc1b52629620c025222d4cb574545cfb8bf /sys | |
parent | Count line-in as line-out, and label both as AudioNline. This is what (diff) | |
download | wireguard-openbsd-f55fac6c627a93cd99ba24977a28e185375dd2a4.tar.xz wireguard-openbsd-f55fac6c627a93cd99ba24977a28e185375dd2a4.zip |
Put inamp gain and inamp mute controls under AudioCinputs. This
avoids some duplicate items when a pin widget has both input and
output amplifiers.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/azalia_codec.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c index 6653c8ca59f..3da52f8868e 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.45 2007/12/06 19:58:48 deanna Exp $ */ +/* $OpenBSD: azalia_codec.c,v 1.46 2007/12/16 18:48:19 deanna Exp $ */ /* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */ /*- @@ -529,9 +529,7 @@ azalia_generic_mixer_init(codec_t *this) snprintf(d->label.name, sizeof(d->label.name), "%s.mute", w->name); d->type = AUDIO_MIXER_ENUM; - if (w->type == COP_AWTYPE_PIN_COMPLEX) - d->mixer_class = AZ_CLASS_OUTPUT; - else if (w->type == COP_AWTYPE_AUDIO_INPUT) + if (w->type == COP_AWTYPE_AUDIO_INPUT) d->mixer_class = AZ_CLASS_RECORD; else d->mixer_class = AZ_CLASS_INPUT; @@ -553,9 +551,7 @@ azalia_generic_mixer_init(codec_t *this) "%s.%s.mute", w->name, this->w[w->connections[j]].name); d->type = AUDIO_MIXER_ENUM; - if (w->type == COP_AWTYPE_PIN_COMPLEX) - d->mixer_class = AZ_CLASS_OUTPUT; - else if (w->type == COP_AWTYPE_AUDIO_INPUT) + if (w->type == COP_AWTYPE_AUDIO_INPUT) d->mixer_class = AZ_CLASS_RECORD; else d->mixer_class = AZ_CLASS_INPUT; @@ -581,9 +577,7 @@ azalia_generic_mixer_init(codec_t *this) snprintf(d->label.name, sizeof(d->label.name), "%s", w->name); d->type = AUDIO_MIXER_VALUE; - if (w->type == COP_AWTYPE_PIN_COMPLEX) - d->mixer_class = AZ_CLASS_OUTPUT; - else if (w->type == COP_AWTYPE_AUDIO_INPUT) + if (w->type == COP_AWTYPE_AUDIO_INPUT) d->mixer_class = AZ_CLASS_RECORD; else d->mixer_class = AZ_CLASS_INPUT; @@ -608,9 +602,7 @@ azalia_generic_mixer_init(codec_t *this) "%s.%s", w->name, this->w[w->connections[j]].name); d->type = AUDIO_MIXER_VALUE; - if (w->type == COP_AWTYPE_PIN_COMPLEX) - d->mixer_class = AZ_CLASS_OUTPUT; - else if (w->type == COP_AWTYPE_AUDIO_INPUT) + if (w->type == COP_AWTYPE_AUDIO_INPUT) d->mixer_class = AZ_CLASS_RECORD; else d->mixer_class = AZ_CLASS_INPUT; |