diff options
| author | toshii <toshii@NetBSD.org> | 2002-03-09 07:25:41 +0000 |
|---|---|---|
| committer | toshii <toshii@NetBSD.org> | 2002-03-09 07:25:41 +0000 |
| commit | f9d3d32c2e1015ef85ff5313681f2ea76f9915e4 (patch) | |
| tree | e771bb519fbcf483231ad2a22aeabd8f61b75562 /sys/dev | |
| parent | f0c89eaf4087e8262220a8ad71f662e993ae8eeb (diff) | |
Fix splaudio/splx botch.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/audio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index d505708e0b6..bc423ea7e73 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $NetBSD: audio.c,v 1.147 2002/03/08 02:30:54 thorpej Exp $ */ +/* $NetBSD: audio.c,v 1.148 2002/03/09 07:25:41 toshii Exp $ */ /* * Copyright (c) 1991-1993 Regents of the University of California. @@ -61,7 +61,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.147 2002/03/08 02:30:54 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.148 2002/03/09 07:25:41 toshii Exp $"); #include "audio.h" #if NAUDIO > 0 @@ -1187,8 +1187,8 @@ audio_read(struct audio_softc *sc, struct uio *uio, int ioflag) return (error); } while (uio->uio_resid > 0 && !error) { - s = splaudio(); if (sc->sc_rconvbuffer_end - sc->sc_rconvbuffer_begin <= 0) { + s = splaudio(); while (cb->used < hw_bytes_per_sample) { if (!sc->sc_rbus) { error = audiostartr(sc); |
