[dvblast-devel] [PATCH] Increase DVR buffer size to avoid overruns
Marian Ďurkovič
md at bts.sk
Sat Nov 14 09:09:08 CET 2009
On Fri, Nov 13, 2009 at 05:21:49PM +0100, Marian Ďurkovič wrote:
> Hi,
>
> attached patch prevents DVR overruns on DVB-S2 cards when using
> dvblastctl ... fe_status
Just for the record, ioctl(...,FE_READ_BER,...) from STB0899 frontend
takes > 500 msec due to this braindead code in the kernel driver:
/* average 5 BER values */
for (i = 0; i < 5; i++) {
msleep(100);
lsb = stb0899_read_reg(state, STB0899_ECNT1L);
msb = stb0899_read_reg(state, STB0899_ECNT1M);
*ber += MAKEWORD16(msb, lsb);
}
*ber /= 5;
With kind regards,
M.
More information about the dvblast-devel
mailing list