diff options
author | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-10-27 02:55:10 +0000 |
---|---|---|
committer | Jacob Meuser <jakemsr@cvs.openbsd.org> | 2008-10-27 02:55:10 +0000 |
commit | 28ebf8dc2b43928b7047ceed2198849a5c5515cd (patch) | |
tree | d2acaaca21a3b9da94ec0f2d9e65cb758e214b41 /sys/dev/pci | |
parent | 7552a228e7efd76e9b0a8f265d67965ffc75dd23 (diff) |
for the AD1984 codec, connect headphones to a proper DAC.
tested by danh@ and Aaron Stellman on Thinkpad T61.
from Alexey Suslikov, thanks
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/azalia_codec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c index 29e658fb450..b7903231cfb 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.53 2008/10/25 02:19:02 jakemsr Exp $ */ +/* $OpenBSD: azalia_codec.c,v 1.54 2008/10/27 02:55:09 jakemsr Exp $ */ /* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */ /*- @@ -2574,6 +2574,8 @@ azalia_ad1984_mixer_init(codec_t *this) mc.dev = -1; mc.type = AUDIO_MIXER_ENUM; + mc.un.ord = 1; /* front DAC -> headphones */ + azalia_generic_mixer_set(this, 0x22, MI_TARGET_CONNLIST, &mc); mc.un.ord = 0; /* unmute */ azalia_generic_mixer_set(this, 0x07, MI_TARGET_INAMP(0), &mc); azalia_generic_mixer_set(this, 0x07, MI_TARGET_INAMP(1), &mc); |