From 185623c5717e270aade9f5edf515ee2fb8eda500 Mon Sep 17 00:00:00 2001 From: augustss Date: Tue, 31 Dec 2002 00:33:10 +0000 Subject: [PATCH] Use correct values to compute record high water mark. From kern/19614 by Ron Roskens. --- sys/dev/audio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 6cfe81617647..3429a731674f 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $NetBSD: audio.c,v 1.170 2002/12/20 18:30:01 fredette Exp $ */ +/* $NetBSD: audio.c,v 1.171 2002/12/31 00:33:10 augustss Exp $ */ /* * Copyright (c) 1991-1993 Regents of the University of California. @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.170 2002/12/20 18:30:01 fredette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.171 2002/12/31 00:33:10 augustss Exp $"); #include "audio.h" #if NAUDIO > 0 @@ -872,7 +872,7 @@ audio_calcwater(struct audio_softc *sc) if (sc->sc_pr.usedlow == sc->sc_pr.usedhigh) sc->sc_pr.usedlow -= sc->sc_pr.blksize; sc->sc_rr.usedhigh = - sc->sc_pr.end - sc->sc_pr.start - sc->sc_pr.blksize; + sc->sc_rr.end - sc->sc_rr.start - sc->sc_rr.blksize; sc->sc_rr.usedlow = 0; }