summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-04-30 17:31:27 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2008-04-30 17:31:27 +0000
commit1a67af8b74f94a87be14a3991b56ded32995957f (patch)
tree66051639fea203c4e316c6928b261db27d9b7967 /sys/dev/pci
parented1f472c4651e10bb481ca2bc479eee3ace70080 (diff)
don't stop both play and record in envy_halt_input() ad envy_halt_output()
ok jakemsr@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/envy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/envy.c b/sys/dev/pci/envy.c
index f7903462ef9..0693dd91cba 100644
--- a/sys/dev/pci/envy.c
+++ b/sys/dev/pci/envy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: envy.c,v 1.8 2008/04/21 00:32:43 jakemsr Exp $ */
+/* $OpenBSD: envy.c,v 1.9 2008/04/30 17:31:26 ratchov Exp $ */
/*
* Copyright (c) 2007 Alexandre Ratchov <alex@caoua.org>
*
@@ -813,7 +813,7 @@ envy_halt_output(void *self)
st = bus_space_read_1(sc->mt_iot, sc->mt_ioh, ENVY_MT_CTL);
st &= ~ENVY_MT_CTL_PSTART;
- bus_space_write_1(sc->mt_iot, sc->mt_ioh, ENVY_MT_CTL, 0);
+ bus_space_write_1(sc->mt_iot, sc->mt_ioh, ENVY_MT_CTL, st);
return 0;
}
@@ -825,7 +825,7 @@ envy_halt_input(void *self)
st = bus_space_read_1(sc->mt_iot, sc->mt_ioh, ENVY_MT_CTL);
st &= ~ENVY_MT_CTL_RSTART;
- bus_space_write_1(sc->mt_iot, sc->mt_ioh, ENVY_MT_CTL, 0);
+ bus_space_write_1(sc->mt_iot, sc->mt_ioh, ENVY_MT_CTL, st);
return 0;
}