Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa Mute the DAC -- not the master volume -- on clos...



details:   https://anonhg.NetBSD.org/src/rev/2a0c7cab3346
branches:  trunk
changeset: 480733:2a0c7cab3346
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Jan 18 22:11:05 2000 +0000

description:
Mute the DAC -- not the master volume -- on close, so that CD passthrough is
unaffected.

diffstat:

 sys/dev/isa/ess.c |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (32 lines):

diff -r 3e2055b21947 -r 2a0c7cab3346 sys/dev/isa/ess.c
--- a/sys/dev/isa/ess.c Tue Jan 18 21:57:59 2000 +0000
+++ b/sys/dev/isa/ess.c Tue Jan 18 22:11:05 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ess.c,v 1.48 1999/11/02 17:05:05 augustss Exp $        */
+/*     $NetBSD: ess.c,v 1.49 2000/01/18 22:11:05 mycroft Exp $ */
 
 /*
  * Copyright 1997
@@ -2421,18 +2421,16 @@
 ess_speaker_on(sc)
        struct ess_softc *sc;
 {
-       /* Disable mute on left- and right-master volume. */
-       ess_clear_mreg_bits(sc, ESS_MREG_VOLUME_LEFT, ESS_VOLUME_MUTE);
-       ess_clear_mreg_bits(sc, ESS_MREG_VOLUME_RIGHT, ESS_VOLUME_MUTE);
+       /* Unmute the DAC. */
+       ess_set_gain(sc, ESS_DAC_PLAY_VOL, 1);
 }
 
 void
 ess_speaker_off(sc)
        struct ess_softc *sc;
 {
-       /* Enable mute on left- and right-master volume. */
-       ess_set_mreg_bits(sc, ESS_MREG_VOLUME_LEFT, ESS_VOLUME_MUTE);
-       ess_set_mreg_bits(sc, ESS_MREG_VOLUME_RIGHT, ESS_VOLUME_MUTE);
+       /* Mute the DAC. */
+       ess_set_gain(sc, ESS_DAC_PLAY_VOL, 0);
 }
 
 /*



Home | Main Index | Thread Index | Old Index