summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Meuser <jakemsr@cvs.openbsd.org>2008-10-30 03:46:57 +0000
committerJacob Meuser <jakemsr@cvs.openbsd.org>2008-10-30 03:46:57 +0000
commit73d0889b74fdfbc00782b23936cf695ada8cfb0c (patch)
treefa9a106107038fac2a3c829085be1775f1a3941b
parent28a1170c0535152cffafff212dcbbb63d2cc00af (diff)
for devices that do not allow independent setting of recording and
playback parameters (like the macppc i2s devices), be sure to synchronise recording parameters to playback parameters when configuring for full-duplex operation, as audio(4) dictates. ok ratchov
-rw-r--r--sys/dev/audio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c
index 819da85fca4..f83dfb0a0d7 100644
--- a/sys/dev/audio.c
+++ b/sys/dev/audio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: audio.c,v 1.99 2008/10/25 22:30:43 jakemsr Exp $ */
+/* $OpenBSD: audio.c,v 1.100 2008/10/30 03:46:56 jakemsr Exp $ */
/* $NetBSD: audio.c,v 1.119 1999/11/09 16:50:47 augustss Exp $ */
/*
@@ -2738,7 +2738,7 @@ audiosetinfo(struct audio_softc *sc, struct audio_info *ai)
if (!indep) {
if (setmode == AUMODE_RECORD)
pp = rp;
- else if (setmode == AUMODE_PLAY)
+ else
rp = pp;
}
error = hw->set_params(sc->hw_hdl, setmode,