From 13c8a2efa28c65023c3add1272a9847e4166ce06 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Thu, 25 Oct 2007 18:11:16 +0000 Subject: return POLLOUT as long as (lowat + 1) isn't reached. without this audio(4) is unusable with lowat = 1 ok jakemsr@ --- 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 bf44a160775..ece9fbf5c97 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: audio.c,v 1.83 2007/10/23 17:43:41 ratchov Exp $ */ +/* $OpenBSD: audio.c,v 1.84 2007/10/25 18:11:15 ratchov Exp $ */ /* $NetBSD: audio.c,v 1.119 1999/11/09 16:50:47 augustss Exp $ */ /* @@ -1784,7 +1784,7 @@ audio_selwakeup(struct audio_softc *sc, int play) #define AUDIO_FILTWRITE(sc) ( \ (!sc->sc_full_duplex && (sc->sc_mode & AUMODE_RECORD)) || \ (!(sc->sc_mode & AUMODE_PLAY_ALL) && sc->sc_playdrop > 0) || \ - (sc->sc_pr.used <= sc->sc_pr.usedlow)) + (sc->sc_pr.used < (sc->sc_pr.usedlow + sc->sc_pr.blksize))) int audio_poll(dev_t dev, int events, struct proc *p) -- cgit v1.2.3