Commit 2c3f11b2 authored by Stephen Williams's avatar Stephen Williams Committed by Mauro Carvalho Chehab

V4L/DVB (3129): correct FE_READ_UNCORRECTED_BLOCKS

- Make FE_READ_UNCORRECTED_BLOCKS reset the count after each call,
thus returning a momentary value like all other demods do,
instead of an absolute, ever increasing count.
Signed-off-by: default avatarStephen Williams <stephen.williams@gmail.com>
Signed-off-by: default avatarJohannes Stezenbach <js@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
parent d21838dd
...@@ -564,10 +564,15 @@ static int cinergyt2_ioctl (struct inode *inode, struct file *file, ...@@ -564,10 +564,15 @@ static int cinergyt2_ioctl (struct inode *inode, struct file *file,
(__u16 __user *) arg); (__u16 __user *) arg);
case FE_READ_UNCORRECTED_BLOCKS: case FE_READ_UNCORRECTED_BLOCKS:
/* UNC are already converted to host byte order... */ {
return put_user(stat->uncorrected_block_count, uint32_t unc_count;
(__u32 __user *) arg);
unc_count = stat->uncorrected_block_count;
stat->uncorrected_block_count = 0;
/* UNC are already converted to host byte order... */
return put_user(unc_count,(__u32 __user *) arg);
}
case FE_SET_FRONTEND: case FE_SET_FRONTEND:
{ {
struct dvbt_set_parameters_msg *param = &cinergyt2->param; struct dvbt_set_parameters_msg *param = &cinergyt2->param;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment