diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2007-10-25 18:11:16 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2007-10-25 18:11:16 +0000 |
commit | 13c8a2efa28c65023c3add1272a9847e4166ce06 (patch) | |
tree | 3b76a50827539e433e8e12390f863495da5e8a20 /sys | |
parent | 81708b746a0ea745942cfd916fc5634b55919edc (diff) |
return POLLOUT as long as (lowat + 1) isn't reached. without this audio(4)
is unusable with lowat = 1
ok jakemsr@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/audio.c | 4 |
1 files 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) |