Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci remove unnecessary ac97-related code



details:   https://anonhg.NetBSD.org/src/rev/cc8c68442dce
branches:  trunk
changeset: 571031:cc8c68442dce
user:      kent <kent%NetBSD.org@localhost>
date:      Tue Nov 09 15:57:11 2004 +0000

description:
remove unnecessary ac97-related code

diffstat:

 sys/dev/pci/auacer.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (50 lines):

diff -r 08c4f22043e7 -r cc8c68442dce sys/dev/pci/auacer.c
--- a/sys/dev/pci/auacer.c      Tue Nov 09 12:09:58 2004 +0000
+++ b/sys/dev/pci/auacer.c      Tue Nov 09 15:57:11 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: auacer.c,v 1.1 2004/10/10 16:37:07 augustss Exp $      */
+/*     $NetBSD: auacer.c,v 1.2 2004/11/09 15:57:11 kent Exp $  */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -51,7 +51,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auacer.c,v 1.1 2004/10/10 16:37:07 augustss Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auacer.c,v 1.2 2004/11/09 15:57:11 kent Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -136,7 +136,6 @@
        /* Power Management */
        void *sc_powerhook;
        int sc_suspend;
-       u_int16_t ext_status;
 };
 
 #define READ1(sc, a) bus_space_read_1(sc->iot, sc->aud_ioh, a)
@@ -329,7 +328,6 @@
        sc->sc_suspend = PWR_RESUME;
        sc->sc_powerhook = powerhook_establish(auacer_powerhook, sc);
 
-       sc->codec_if->vtbl->set_clock(sc->codec_if, 48000); /* XXX ? */
        audio_attach_mi(&auacer_hw_if, sc, &sc->sc_dev);
 
        auacer_reset(sc);
@@ -1170,7 +1168,6 @@
                /* Power down */
                DPRINTF(1, ("%s: power down\n", sc->sc_dev.dv_xname));
                sc->sc_suspend = why;
-               auacer_read_codec(sc, AC97_REG_EXT_AUDIO_CTRL, &sc->ext_status);
                break;
 
        case PWR_RESUME:
@@ -1186,7 +1183,6 @@
                auacer_reset_codec(sc);
                delay(1000);
                sc->codec_if->vtbl->restore_ports(sc->codec_if);
-               auacer_write_codec(sc, AC97_REG_EXT_AUDIO_CTRL, sc->ext_status);
                break;
 
        case PWR_SOFTSUSPEND:



Home | Main Index | Thread Index | Old Index