From 2642627049169b2075a9253915698154e1138979 Mon Sep 17 00:00:00 2001 From: Paul Irofti Date: Mon, 23 Nov 2009 22:33:22 +0000 Subject: Add azalia(4) suspend/resume stabs, now some laptops can go all the way. Okay deraadt@. --- sys/dev/pci/azalia.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci/azalia.c') diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c index 815a1069d0b..552973978fe 100644 --- a/sys/dev/pci/azalia.c +++ b/sys/dev/pci/azalia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia.c,v 1.160 2009/11/11 23:12:39 jakemsr Exp $ */ +/* $OpenBSD: azalia.c,v 1.161 2009/11/23 22:33:21 pirofti Exp $ */ /* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */ /*- @@ -519,6 +519,12 @@ azalia_pci_activate(struct device *self, int act) if (sc->audiodev != NULL) ret = config_deactivate(sc->audiodev); return ret; + case DVACT_SUSPEND: + /* XXX should power down azalia */ + return ret; + case DVACT_RESUME: + /* XXX should power up azalia */ + return ret; } return EOPNOTSUPP; } -- cgit v1.2.3