diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-15 11:22:08 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-21 11:52:05 +0100 |
commit | e1b2ac4d1e6bb214823c42bb807a6cc5f21aa223 (patch) | |
tree | bea25ec75888d5ebb77ddbd0a7fb75dcbcab31c9 /drivers/media/common/siano/smsdvb.h | |
parent | [media] siano: Fix bandwidth report (diff) | |
download | linux-e1b2ac4d1e6bb214823c42bb807a6cc5f21aa223.tar.xz linux-e1b2ac4d1e6bb214823c42bb807a6cc5f21aa223.zip |
[media] siano: Only feed DVB data when there's a feed
Right now, the driver sends DVB data even before tunning.
It was noticed that this may lead into some mistakes at DVB
decode, as the PIDs from wrong channels may be associated with
another frequency, as they may already be inside the PID buffers.
So, prevent it by not feeding DVB demux with data while there's no
feed or while the device is not tuned.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/siano/smsdvb.h')
-rw-r--r-- | drivers/media/common/siano/smsdvb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/common/siano/smsdvb.h b/drivers/media/common/siano/smsdvb.h index 34220696d87d..63cdd755521e 100644 --- a/drivers/media/common/siano/smsdvb.h +++ b/drivers/media/common/siano/smsdvb.h @@ -54,6 +54,9 @@ struct smsdvb_client_t { unsigned long get_stats_jiffies; + int feed_users; + bool has_tuned; + /* Stats debugfs data */ struct dentry *debugfs; |