Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci no need to restore AC97_REG_EXT_AUDIO_CTRL value...
details: https://anonhg.NetBSD.org/src/rev/7c96fd021bdd
branches: trunk
changeset: 570545:7c96fd021bdd
user: kent <kent%NetBSD.org@localhost>
date: Sun Oct 17 09:10:28 2004 +0000
description:
no need to restore AC97_REG_EXT_AUDIO_CTRL value on resuming
because ac97_codec_if_vtbl::restore_ports() does it.
diffstat:
sys/dev/pci/auich.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (42 lines):
diff -r c9de9cb77e74 -r 7c96fd021bdd sys/dev/pci/auich.c
--- a/sys/dev/pci/auich.c Sun Oct 17 08:46:39 2004 +0000
+++ b/sys/dev/pci/auich.c Sun Oct 17 09:10:28 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auich.c,v 1.62 2004/09/22 12:20:24 kent Exp $ */
+/* $NetBSD: auich.c,v 1.63 2004/10/17 09:10:28 kent Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.62 2004/09/22 12:20:24 kent Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auich.c,v 1.63 2004/10/17 09:10:28 kent Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -225,7 +225,6 @@
/* Power Management */
void *sc_powerhook;
int sc_suspend;
- u_int16_t ext_status;
};
#define IS_FIXED_RATE(codec) !((codec)->vtbl->get_extcaps(codec) \
@@ -1426,7 +1425,6 @@
/* Power down */
DPRINTF(1, ("%s: power down\n", sc->sc_dev.dv_xname));
sc->sc_suspend = why;
- auich_read_codec(sc, AC97_REG_EXT_AUDIO_CTRL, &sc->ext_status);
break;
case PWR_RESUME:
@@ -1442,7 +1440,6 @@
auich_reset_codec(sc);
DELAY(1000);
(sc->codec_if->vtbl->restore_ports)(sc->codec_if);
- auich_write_codec(sc, AC97_REG_EXT_AUDIO_CTRL, sc->ext_status);
break;
case PWR_SOFTSUSPEND:
Home |
Main Index |
Thread Index |
Old Index