]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] dvb_demux: uncomment a packet loss check code
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 13 Oct 2016 10:19:55 +0000 (07:19 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 21 Oct 2016 10:42:07 +0000 (08:42 -0200)
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>
drivers/media/dvb-core/dvb_demux.c

index 5a69b0bda4bb4872003ce0a1e19e93f1a94ef137..51bf5eb2df497c3ba48dc67b9f30809973609933 100644 (file)
@@ -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;