Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/dev remove mixer setting code in repulse_atta...



details:   https://anonhg.NetBSD.org/src/rev/32bd71a37b85
branches:  trunk
changeset: 571032:32bd71a37b85
user:      kent <kent%NetBSD.org@localhost>
date:      Tue Nov 09 16:18:58 2004 +0000

description:
remove mixer setting code in repulse_attach() because ac97_attach() does it

diffstat:

 sys/arch/amiga/dev/repulse.c |  30 ++----------------------------
 1 files changed, 2 insertions(+), 28 deletions(-)

diffs (60 lines):

diff -r cc8c68442dce -r 32bd71a37b85 sys/arch/amiga/dev/repulse.c
--- a/sys/arch/amiga/dev/repulse.c      Tue Nov 09 15:57:11 2004 +0000
+++ b/sys/arch/amiga/dev/repulse.c      Tue Nov 09 16:18:58 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: repulse.c,v 1.10 2004/10/29 12:57:16 yamt Exp $ */
+/*     $NetBSD: repulse.c,v 1.11 2004/11/09 16:18:58 kent Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: repulse.c,v 1.10 2004/10/29 12:57:16 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: repulse.c,v 1.11 2004/11/09 16:18:58 kent Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -256,11 +256,8 @@
        struct repulse_softc *sc;
        struct zbus_args *zap;
        struct repulse_hw *bp;
-        struct mixer_ctrl ctl;
        u_int8_t *fwp;
        int needs_firmware;
-       int i;
-
        u_int16_t a;
 
        sc = (struct repulse_softc *)self;
@@ -343,29 +340,6 @@
        }
 #endif
 
-       /*
-        * from auvia.c: disable mutes ...
-        * XXX maybe this should happen in MI code?
-        */
-
-       for (i = 0; i < 5; i++) {
-               static struct {
-                       char *class, *device;
-               } d[] = {
-                       { AudioCoutputs, AudioNmaster},
-                        { AudioCinputs, AudioNdac},
-                        { AudioCinputs, AudioNcd},
-                        { AudioCinputs, AudioNline},
-                        { AudioCrecord, AudioNvolume},
-               };
-
-               ctl.type = AUDIO_MIXER_ENUM;
-               ctl.un.ord = 0;
-               ctl.dev = sc->sc_codec_if->vtbl->get_portnum_by_name(
-                       sc->sc_codec_if, d[i].class, d[i].device, AudioNmute);
-               rep_set_port(sc, &ctl);
-       }
-
        sc->sc_isr.isr_ipl = 2;
        sc->sc_isr.isr_arg = sc;
        sc->sc_isr.isr_intr = rep_intr;



Home | Main Index | Thread Index | Old Index