reenabling unsolicited responses in the resume path was lost in
authorjakemsr <jakemsr@openbsd.org>
Fri, 6 Aug 2010 05:57:48 +0000 (05:57 +0000)
committerjakemsr <jakemsr@openbsd.org>
Fri, 6 Aug 2010 05:57:48 +0000 (05:57 +0000)
rev 1.172.  restore it so headphone/speaker switching can work
after resume.
ok deraadt

sys/dev/pci/azalia.c

index 608fd0f..e42a258 100644 (file)
@@ -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;