From: deraadt Date: Mon, 20 Nov 1995 09:36:56 +0000 (+0000) Subject: provide floor for sampling rate; from khym@bga.com; netbsd pr#1770 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ad3961651220901a32c2068f074900e507c8d5db;p=openbsd provide floor for sampling rate; from khym@bga.com; netbsd pr#1770 --- diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 5fa7e0fdad5..1ba137da917 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -819,6 +819,8 @@ audio_calc_blksize(sc) bs = AU_RING_SIZE; bs &= ~1; /* make it even, in case of stereo */ + if (bs == 0) + bs = 2; return(bs); }