artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5465c6b
)
provide floor for sampling rate; from khym@bga.com; netbsd pr#1770
author
deraadt
<deraadt@openbsd.org>
Mon, 20 Nov 1995 09:36:56 +0000
(09:36 +0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 20 Nov 1995 09:36:56 +0000
(09:36 +0000)
sys/dev/audio.c
patch
|
blob
|
history
diff --git
a/sys/dev/audio.c
b/sys/dev/audio.c
index
5fa7e0f
..
1ba137d
100644
(file)
--- 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);
}