From 73d0889b74fdfbc00782b23936cf695ada8cfb0c Mon Sep 17 00:00:00 2001 From: Jacob Meuser Date: Thu, 30 Oct 2008 03:46:57 +0000 Subject: 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 --- sys/dev/audio.c | 4 ++-- 1 file 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, -- cgit v1.2.3