summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2008-12-28 23:15:15 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2008-12-28 23:15:15 +0000
commita65e7c134732d02371efda6640442d3b3adf2152 (patch)
treeeeb152065a51aca36a9b533de13688a98466ec81
parentd50c198afa1c3b4d17a02f0f0e13e046422a278a (diff)
get output from the first DAC to the line-out on the MacMini1,1
-rw-r--r--sys/dev/pci/azalia_codec.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/dev/pci/azalia_codec.c b/sys/dev/pci/azalia_codec.c
index 81173b606e6..3b871931171 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.97 2008/12/26 10:07:48 jakemsr Exp $ */
+/* $OpenBSD: azalia_codec.c,v 1.98 2008/12/28 23:15:14 jakemsr Exp $ */
/* $NetBSD: azalia_codec.c,v 1.8 2006/05/10 11:17:27 kent Exp $ */
/*-
@@ -1845,16 +1845,22 @@ azalia_stac9202_mixer_init(codec_t *this)
int
azalia_stac9221_init_widget(const codec_t *codec, widget_t *w, nid_t nid)
{
- /* put hp and spkr dacs first in the dacgroup for MacBookPro1,2 */
+ /* Apple didn't follow the HDA spec for associations */
if (codec->subid == STAC9221_APPLE_ID) {
- if (nid == 0xa && w->d.pin.color == CORB_CD_WHITE) {
+ if (nid == 0xa &&
+ (w->d.pin.color == CORB_CD_WHITE ||
+ w->d.pin.color == CORB_CD_GREEN)) {
w->d.pin.association = 1;
w->d.pin.sequence = 0;
}
- if (nid == 0xc && w->d.pin.color == CORB_CD_WHITE) {
+ if (nid == 0xc && w->d.pin.device == CORB_CD_SPEAKER) {
w->d.pin.association = 1;
w->d.pin.sequence = 1;
}
+ if (nid == 0xf && w->d.pin.color == CORB_CD_BLUE) {
+ w->d.pin.association = 2;
+ w->d.pin.sequence = 0;
+ }
}
return 0;
}