summaryrefslogtreecommitdiffstats
path: root/sys/dev/audio.c
diff options
context:
space:
mode:
authorjakemsr <jakemsr@openbsd.org>2007-08-08 05:51:23 +0000
committerjakemsr <jakemsr@openbsd.org>2007-08-08 05:51:23 +0000
commit2f426515abc89a9f1f9472872af65cb523b5ee56 (patch)
tree6a3d2916d8669c5f525d9a1d4211571187f4fce6 /sys/dev/audio.c
parentAdd "dma" and "ledma" as busses that potentially have the root device on them. (diff)
downloadwireguard-openbsd-2f426515abc89a9f1f9472872af65cb523b5ee56.tar.xz
wireguard-openbsd-2f426515abc89a9f1f9472872af65cb523b5ee56.zip
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) {