summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-18 21:37:53 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-18 21:37:53 +0000
commit940985ddc89fa54ebf4e1ada8c4c091fee6c32aa (patch)
tree8b8a952e7c3e6b38bb0c8df778939bf3893881d8 /sys/dev
parent68acde6e52ba3c26af5eb41f1e32e193e0fb3cae (diff)
do not reset the volume after playback; landy@alumni.caltech.edu
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/ess.c12
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);
}
/*