diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-13 07:19:55 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-10-21 08:42:07 -0200 |
commit | 801edd6bb9b223390028dc7f565904a2833d20e1 (patch) | |
tree | 06d6b7260c3f897ce2f6239a29b5744c4ade71ab /drivers | |
parent | bbd02f6aa9fb4c1c951fe52629b722f79c70883f (diff) |
[media] dvb_demux: uncomment a packet loss check code
There is a commented code that also detects packet loss.
Uncomment it and put into the DVB_DEMUX_SECTION_LOSS_LOG
debug Kconfig option.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb-core/dvb_demux.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/dvb-core/dvb_demux.c b/drivers/media/dvb-core/dvb_demux.c index 5a69b0bda4bb..51bf5eb2df49 100644 --- a/drivers/media/dvb-core/dvb_demux.c +++ b/drivers/media/dvb-core/dvb_demux.c @@ -110,21 +110,23 @@ static inline int dvb_dmx_swfilter_payload(struct dvb_demux_feed *feed, { int count = payload(buf); int p; - //int ccok; - //u8 cc; +#ifdef CONFIG_DVB_DEMUX_SECTION_LOSS_LOG + int ccok; + u8 cc; +#endif if (count == 0) return -1; p = 188 - count; - /* +#ifdef CONFIG_DVB_DEMUX_SECTION_LOSS_LOG cc = buf[3] & 0x0f; ccok = ((feed->cc + 1) & 0x0f) == cc; feed->cc = cc; if (!ccok) dprintk("missed packet!\n"); - */ +#endif if (buf[1] & 0x40) // PUSI ? feed->peslen = 0xfffa; |