From 28ebf8dc2b43928b7047ceed2198849a5c5515cd Mon Sep 17 00:00:00 2001 From: Jacob Meuser Date: Mon, 27 Oct 2008 02:55:10 +0000 Subject: for the AD1984 codec, connect headphones to a proper DAC. tested by danh@ and Aaron Stellman on Thinkpad T61. from Alexey Suslikov, thanks --- sys/dev/pci/azalia_codec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3