Subject: azalia ALC883 codec
To: None <port-i386@netbsd.org>
From: Antti Kantee <pooka@cs.hut.fi>
List: port-i386
Date: 10/04/2007 17:14:35
Hi,

I'm using azalia with Juan's recent ALC883 codec patch.  It works great
except for headphones.  I had to apply the following patch.  But I'm
not sure if it's correct, since I have a vague recollection that before
support I had to manually configure the mixers in different ways after
each reboot to Windows (haven't done that in a while now).

Does anyone know any better?

Index: azalia_codec.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/azalia_codec.c,v
retrieving revision 1.45
diff -p -u -r1.45 azalia_codec.c
--- azalia_codec.c	22 Sep 2007 15:14:33 -0000	1.45
+++ azalia_codec.c	4 Oct 2007 14:09:45 -0000
@@ -2612,7 +2612,7 @@ alc883_mixer_init(codec_t *this)
 	mc.un.ord = 0;		/* [0] 0x0c */
 	generic_mixer_set(this, 0x14, MI_TARGET_CONNLIST, &mc);
 	generic_mixer_set(this, 0x1b, MI_TARGET_CONNLIST, &mc);
-	mc.un.ord = 1;		/* [1] 0x0d */
+	mc.un.ord = 0;		/* [1] 0x0d */
 	generic_mixer_set(this, 0x15, MI_TARGET_CONNLIST, &mc);
 	mc.un.ord = 2;		/* [2] 0x0e */
 	generic_mixer_set(this, 0x16, MI_TARGET_CONNLIST, &mc);

-- 
Antti Kantee <pooka@iki.fi>                     Of course he runs NetBSD
http://www.iki.fi/pooka/                          http://www.NetBSD.org/
    "la qualité la plus indispensable du cuisinier est l'exactitude"