diff options
author | orion <orion@FreeBSD.org> | 2001-09-03 00:45:00 +0000 |
---|---|---|
committer | orion <orion@FreeBSD.org> | 2001-09-03 00:45:00 +0000 |
commit | ebb84d55ed382edf827cd3fe1e2b6e0aa1d6362a (patch) | |
tree | 1ba080fa795215541bc71a570822633adfa74745 /sys | |
parent | 3c7a8699298544366ef6c82de294650626017fe8 (diff) | |
download | FreeBSD-src-ebb84d55ed382edf827cd3fe1e2b6e0aa1d6362a.zip FreeBSD-src-ebb84d55ed382edf827cd3fe1e2b6e0aa1d6362a.tar.gz |
Fix return value of setblocksize functions. Recording is interspersed
with silent intervals otherwise.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/sound/pci/als4000.c | 2 | ||||
-rw-r--r-- | sys/dev/sound/pci/cmi.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pci/als4000.c b/sys/dev/sound/pci/als4000.c index a554479..3d1099a2 100644 --- a/sys/dev/sound/pci/als4000.c +++ b/sys/dev/sound/pci/als4000.c @@ -251,7 +251,7 @@ alschan_setblocksize(kobj_t obj, void *data, u_int32_t blocksize) blocksize = ALS_BUFFER_SIZE / 2; } sndbuf_resize(ch->buffer, 2, blocksize); - return sndbuf_getsize(ch->buffer); + return blocksize; } static int diff --git a/sys/dev/sound/pci/cmi.c b/sys/dev/sound/pci/cmi.c index 6b6b0e7..75b8cef 100644 --- a/sys/dev/sound/pci/cmi.c +++ b/sys/dev/sound/pci/cmi.c @@ -441,7 +441,7 @@ cmichan_setblocksize(kobj_t obj, void *data, u_int32_t blocksize) } sndbuf_resize(ch->buffer, CMI_INTR_PER_BUFFER, blocksize); - return sndbuf_getsize(ch->buffer); + return blocksize; } static int |