From: jakemsr Date: Fri, 6 Aug 2010 05:57:48 +0000 (+0000) Subject: reenabling unsolicited responses in the resume path was lost in X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=84940f959f176bc4b40dd4a567e4c8a6192c25ef;p=openbsd 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 --- 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;