summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/audio.c2
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);
}