Mute the DAC -- not the master volume -- on close, so that CD passthrough is

unaffected.
This commit is contained in:
mycroft 2000-01-18 22:11:05 +00:00
parent 43a7fde6d9
commit 01c66d1c23
1 changed files with 5 additions and 7 deletions

View File

@ -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 * Copyright 1997
@ -2421,18 +2421,16 @@ void
ess_speaker_on(sc) ess_speaker_on(sc)
struct ess_softc *sc; struct ess_softc *sc;
{ {
/* Disable mute on left- and right-master volume. */ /* Unmute the DAC. */
ess_clear_mreg_bits(sc, ESS_MREG_VOLUME_LEFT, ESS_VOLUME_MUTE); ess_set_gain(sc, ESS_DAC_PLAY_VOL, 1);
ess_clear_mreg_bits(sc, ESS_MREG_VOLUME_RIGHT, ESS_VOLUME_MUTE);
} }
void void
ess_speaker_off(sc) ess_speaker_off(sc)
struct ess_softc *sc; struct ess_softc *sc;
{ {
/* Enable mute on left- and right-master volume. */ /* Mute the DAC. */
ess_set_mreg_bits(sc, ESS_MREG_VOLUME_LEFT, ESS_VOLUME_MUTE); ess_set_gain(sc, ESS_DAC_PLAY_VOL, 0);
ess_set_mreg_bits(sc, ESS_MREG_VOLUME_RIGHT, ESS_VOLUME_MUTE);
} }
/* /*