Allow blocksize of NBPG/2 to NBPG for higher sampling rates. From

Lennart Augustsson <augustss@cs.chalmers.se>, closes PR 2013.
This commit is contained in:
scottr 1996-02-05 21:32:26 +00:00
parent 25aa4f48b1
commit ae06fdb589
1 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ad1848.c,v 1.7 1995/11/10 04:30:36 mycroft Exp $ */
/* $NetBSD: ad1848.c,v 1.8 1996/02/05 21:32:26 scottr Exp $ */
/*
* Copyright (c) 1994 John Brezak
@ -1124,8 +1124,7 @@ ad1848_round_blocksize(addr, blk)
sc->sc_lastcc = -1;
/* Higher speeds need bigger blocks to avoid popping and silence gaps. */
if ((sc->sc_orate > 8000 || sc->sc_irate > 8000) &&
(blk > NBPG/2 || blk < NBPG/4))
if ((sc->sc_orate > 8000 || sc->sc_irate > 8000) && blk < NBPG/2)
blk = NBPG/2;
/* don't try to DMA too much at once, though. */
if (blk > NBPG)