Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

+6 -4
+6 -4
drivers/media/dvb-core/dvb_demux.c
··· 110 110 { 111 111 int count = payload(buf); 112 112 int p; 113 - //int ccok; 114 - //u8 cc; 113 + #ifdef CONFIG_DVB_DEMUX_SECTION_LOSS_LOG 114 + int ccok; 115 + u8 cc; 116 + #endif 115 117 116 118 if (count == 0) 117 119 return -1; 118 120 119 121 p = 188 - count; 120 122 121 - /* 123 + #ifdef CONFIG_DVB_DEMUX_SECTION_LOSS_LOG 122 124 cc = buf[3] & 0x0f; 123 125 ccok = ((feed->cc + 1) & 0x0f) == cc; 124 126 feed->cc = cc; 125 127 if (!ccok) 126 128 dprintk("missed packet!\n"); 127 - */ 129 + #endif 128 130 129 131 if (buf[1] & 0x40) // PUSI ? 130 132 feed->peslen = 0xfffa;