summaryrefslogtreecommitdiff
path: root/sys/dev/audio.c
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2007-08-08 05:51:24 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2007-08-08 05:51:24 +0000
commitab7d8d6f72eaf545669a7d736154cba05a99d173 (patch)
tree11952b352ba578cd22f00b8c7a818381e28c6a8b /sys/dev/audio.c
parent084a202b04e7dbd9cd647e130a24c7fd14e230d2 (diff)
revert the change in rev 1.60 of audio.c and the corresponding
documentation change the audio layer is still too "imperfect" for this change fixes problems reported aanriot, matthieu and dtucker requested by deraadt
Diffstat (limited to 'sys/dev/audio.c')
-rw-r--r--sys/dev/audio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index 81472c45bff..11ccda51d99 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio.c,v 1.71 2007/08/02 07:24:46 jakemsr Exp $ */
+/* $OpenBSD: audio.c,v 1.72 2007/08/08 05:51:23 jakemsr Exp $ */
/* $NetBSD: audio.c,v 1.119 1999/11/09 16:50:47 augustss Exp $ */
/*
@@ -940,9 +940,11 @@ audio_open(dev_t dev, struct audio_softc *sc, int flags, int ifmt,
sc->sc_eof = 0;
sc->sc_playdrop = 0;
- sc->sc_full_duplex =
+ sc->sc_full_duplex = 0;
+/* doesn't always work right on SB.
(flags & (FWRITE|FREAD)) == (FWRITE|FREAD) &&
(sc->hw_if->get_props(sc->hw_hdl) & AUDIO_PROP_FULLDUPLEX);
+*/
mode = 0;
if (flags & FREAD) {