diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-18 21:37:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-18 21:37:53 +0000 |
commit | 940985ddc89fa54ebf4e1ada8c4c091fee6c32aa (patch) | |
tree | 8b8a952e7c3e6b38bb0c8df778939bf3893881d8 /sys | |
parent | 68acde6e52ba3c26af5eb41f1e32e193e0fb3cae (diff) |
do not reset the volume after playback; landy@alumni.caltech.edu
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/isa/ess.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/dev/isa/ess.c b/sys/dev/isa/ess.c index 89f257f1875..3b17037b357 100644 --- a/sys/dev/isa/ess.c +++ b/sys/dev/isa/ess.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ess.c,v 1.3 2001/01/29 06:27:59 mickey Exp $ */ +/* $OpenBSD: ess.c,v 1.4 2001/07/18 21:37:52 deraadt Exp $ */ /* $NetBSD: ess.c,v 1.44.4.1 1999/06/21 01:18:00 thorpej Exp $ */ /* @@ -2422,18 +2422,16 @@ void 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); } /* |