diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-20 09:36:57 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-20 09:36:57 +0000 |
commit | 5b210a1c987980cba4783599341c5da49d4c9c29 (patch) | |
tree | 7c502649f7c92315ef3ea69505445682f8abf59b | |
parent | d57e717db9235440a1e1e5b1d8d9f25080202b81 (diff) |
provide floor for sampling rate; from khym@bga.com; netbsd pr#1770
-rw-r--r-- | sys/dev/audio.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |