summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2010-08-06 05:57:49 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2010-08-06 05:57:49 +0000
commit22b8f0d08d76145b167f22083325c52b23c958cc (patch)
treee16b8ebec68b40eddeb8c4eb2be2078b2ad4caad
parent07a0b04d594810d6304b194d62431d1956a96f4c (diff)
reenabling unsolicited responses in the resume path was lost in
rev 1.172. restore it so headphone/speaker switching can work after resume. ok deraadt
-rw-r--r--sys/dev/pci/azalia.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c
index 608fd0f37f9..e42a2586d37 100644
--- a/sys/dev/pci/azalia.c
+++ b/sys/dev/pci/azalia.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: azalia.c,v 1.178 2010/08/06 05:34:50 jakemsr Exp $ */
+/* $OpenBSD: azalia.c,v 1.179 2010/08/06 05:57:48 jakemsr Exp $ */
/* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */
/*-
@@ -1452,6 +1452,9 @@ azalia_resume(azalia_t *az)
if (err)
return err;
+ /* enable unsolicited responses on the controller */
+ AZ_WRITE_4(az, GCTL, AZ_READ_4(az, GCTL) | HDA_GCTL_UNSOL);
+
err = azalia_resume_codec(&az->codecs[az->codecno]);
if (err)
return err;