mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-22 16:29:38 +00:00
Fix return value of setblocksize functions. Recording is interspersed
with silent intervals otherwise.
This commit is contained in:
parent
de08586125
commit
167d1bcd19
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82834
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue