summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2005-12-07 14:22:57 +0000
committerJohannes Stezenbach <devnull@localhost>2005-12-07 14:22:57 +0000
commit8f2838f35524e065960e753f0b8bdb76e194c879 (patch)
tree33bdbb2a6175b061c839fc5b3d44f6f082bb2c02 /linux/drivers/media/dvb/cinergyT2/cinergyT2.c
parentaeac86abb3fdff12ddfb38503b35e195ab85ceab (diff)
downloadmediapointer-dvb-s2-8f2838f35524e065960e753f0b8bdb76e194c879.tar.gz
mediapointer-dvb-s2-8f2838f35524e065960e753f0b8bdb76e194c879.tar.bz2
correct FE_READ_UNCORRECTED_BLOCKS
From: Stephen Williams <stephen.gw@gmail.com> 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: Stephen Williams <stephen.williams@gmail.com> Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/cinergyT2/cinergyT2.c')
-rw-r--r--linux/drivers/media/dvb/cinergyT2/cinergyT2.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
index f8d853d66..fd1c0a41f 100644
--- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
+++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c
@@ -593,10 +593,15 @@ static int cinergyt2_ioctl (struct inode *inode, struct file *file,
(__u16 __user *) arg);
case FE_READ_UNCORRECTED_BLOCKS:
- /* UNC are already converted to host byte order... */
- return put_user(stat->uncorrected_block_count,
- (__u32 __user *) arg);
+ {
+ uint32_t unc_count;
+ 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:
{
struct dvbt_set_parameters_msg *param = &cinergyt2->param;