From f9d3d32c2e1015ef85ff5313681f2ea76f9915e4 Mon Sep 17 00:00:00 2001 From: toshii Date: Sat, 9 Mar 2002 07:25:41 +0000 Subject: Fix splaudio/splx botch. --- sys/dev/audio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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 -__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); -- cgit