summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/isa
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2001-09-18 15:19:44 +0000
committercg <cg@FreeBSD.org>2001-09-18 15:19:44 +0000
commitb86875b94424de60c259d87ce78ddde5b1d9cbc1 (patch)
treee2f2cca0d3b7faf5445d5ee7b02ac2c6a3fa0b81 /sys/dev/sound/isa
parent30230e56a5b2ff594d354c7f46b553c0264925fc (diff)
downloadFreeBSD-src-b86875b94424de60c259d87ce78ddde5b1d9cbc1.zip
FreeBSD-src-b86875b94424de60c259d87ce78ddde5b1d9cbc1.tar.gz
when setting blocksize, fix blockcount to 2 to reduce latency with smaller
block sizes.
Diffstat (limited to 'sys/dev/sound/isa')
-rw-r--r--sys/dev/sound/isa/mss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/sound/isa/mss.c b/sys/dev/sound/isa/mss.c
index 9e53958..917a0ed 100644
--- a/sys/dev/sound/isa/mss.c
+++ b/sys/dev/sound/isa/mss.c
@@ -1158,6 +1158,8 @@ msschan_setblocksize(kobj_t obj, void *data, u_int32_t blocksize)
struct mss_chinfo *ch = data;
ch->blksz = blocksize;
+ sndbuf_resize(ch->buffer, 2, ch->blksz);
+
return ch->blksz;
}
OpenPOWER on IntegriCloud