summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2008-10-27 02:55:10 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2008-10-27 02:55:10 +0000
commit28ebf8dc2b43928b7047ceed2198849a5c5515cd (patch)
treed2acaaca21a3b9da94ec0f2d9e65cb758e214b41
parent7552a228e7efd76e9b0a8f265d67965ffc75dd23 (diff)
for the AD1984 codec, connect headphones to a proper DAC.
tested by danh@ and Aaron Stellman on Thinkpad T61. from Alexey Suslikov, thanks
-rw-r--r--sys/dev/pci/azalia_codec.c4
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);