From: Mauro Carvalho Chehab Date: Thu, 13 Oct 2016 10:19:55 +0000 (-0300) Subject: [media] dvb_demux: uncomment a packet loss check code X-Git-Tag: v4.10-rc1~71^2^2~484 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=801edd6bb9b223390028dc7f565904a2833d20e1;p=karo-tx-linux.git [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 --- 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;