From 84940f959f176bc4b40dd4a567e4c8a6192c25ef Mon Sep 17 00:00:00 2001 From: jakemsr Date: Fri, 6 Aug 2010 05:57:48 +0000 Subject: [PATCH] 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 --- sys/dev/pci/azalia.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.20.1