diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2003-01-26 23:16:15 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2003-01-26 23:16:15 +0000 |
commit | 6fc2dab111f965973fc50de809b0b379a08cd0b5 (patch) | |
tree | bfde9e7a1e7f4b17024d705d25b272a3e9cf6187 /sys/dev | |
parent | 29e377eee8b4c662c4a896b091afc22314e4ad7b (diff) |
compute record high water mark from record parameters not play parameters; from NetBSD kern/19614
Diffstat (limited to 'sys/dev')
-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 7b840c672d2..ea3f3018abf 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: audio.c,v 1.40 2002/08/26 16:20:04 mickey Exp $ */ +/* $OpenBSD: audio.c,v 1.41 2003/01/26 23:16:14 jason Exp $ */ /* $NetBSD: audio.c,v 1.105 1998/09/27 16:43:56 christos Exp $ */ /* @@ -924,7 +924,7 @@ audio_calcwater(sc) sc->sc_pr.usedlow = sc->sc_pr.usedhigh * 3 / 4; /* set lowater at 75% */ 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.usedhigh = sc->sc_rr.end - sc->sc_rr.start - sc->sc_rr.blksize; sc->sc_rr.usedlow = 0; } |