Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Problem with NAPI section filtering



I'm trying to filter a SDT and am baffled why it times out with no
section returned. I have filters working for PAT, PMT, NIT on this same
feed. 

Attached is a code fragment for the filter and a dump of the SDT ts
packets as well as the correct results from using
libdvb/src/si/sections.c:filter_section.

I'm running 0.8.2 and a 2.4.2 kernel. I tried the latest cvs code as
well as 0.9.0, but am having trouble
getting even test_front to run. The open call on qpskfe returns
"Operation not supported"

If this is a known problem and fixed, anybody know why I can't get 0.9.0
to work?

The goal is to retool dvb_si to use the new api. It's just for learning.

Thanks,

Steve

-- Attached file included as plaintext by Listar --
-- File: sdtbug.txt

Code fragment that sets up filter


        memset(&sctFilterParams.filter, 0, sizeof(struct dmxFilter));
        sctFilterParams.pid                       = 0x11;
        sctFilterParams.filter.filter[0]          = 0x42;
        sctFilterParams.filter.mask[0]            = 0xFF;
        sctFilterParams.timeout                   = 10000; // in msec
        sctFilterParams.flags                     = DMX_IMMEDIATE_START;

        if (ioctl(fd, DMX_SET_FILTER, &sctFilterParams) < 0)
                perror("DMX SET sdt FILTER:");

dump of ts blocks for SDT and results of the filter_section code
in libdvb/src/si/sections.c

ts
0000 47 40 11 13 00 42 f0 c6 00 01 f7 00 00 ff ff ff  G@   B
0010 00 01 fc 80 1a 48 18 01 12 46 6f 78 20 53 70 6f       H   Fox Spo
0020 72 74 73 20 48 6f 75 73 74 6f 6e 03 43 68 31 00  rts Houston Ch1
0030 02 fc 80 1a 48 18 01 12 46 6f 78 20 53 70 6f 72      H   Fox Spor
0040 74 73 20 48 6f 75 73 74 6f 6e 03 43 68 32 00 03  ts Houston Ch2
0050 fc 80 1a 48 18 01 12 46 6f 78 20 53 70 6f 72 74     H   Fox Sport
0060 73 20 48 6f 75 73 74 6f 6e 03 43 68 33 00 04 fc  s Houston Ch3
0070 80 1a 48 18 01 12 46 6f 78 20 53 70 6f 72 74 73    H   Fox Sports
0080 20 48 6f 75 73 74 6f 6e 03 43 68 34 00 05 fc 80   Houston Ch4
0090 1a 48 18 01 12 46 6f 78 20 53 70 6f 72 74 73 20   H   Fox Sports
00a0 48 6f 75 73 74 6f 6e 03 43 68 35 00 06 fc 80 1a  Houston Ch5
00b0 48 18 01 12 46 6f 78 20 53 70 6f 72 02 00 00 00  H   Fox Spor

ts
0000 47 00 11 14 74 73 20 48 6f 75 73 74 6f 6e 03 43  G   ts Houston C
0010 68 36 82 44 06 cb ff ff ff ff ff ff ff ff ff ff  h6 D
0020 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0030 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0040 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0050 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0060 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0070 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0080 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0090 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
00a0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
00b0 ff ff ff ff ff ff ff ff ff ff ff ff 03 00 00 00

SEC: completed section 0x42 on PID: 0x11 len: 198
section buffer
0000 42 f0 c6 00 01 f7 00 00 ff ff ff 00 01 fc 80 1a  B
0010 48 18 01 12 46 6f 78 20 53 70 6f 72 74 73 20 48  H   Fox Sports H
0020 6f 75 73 74 6f 6e 03 43 68 31 00 02 fc 80 1a 48  ouston Ch1     H
0030 18 01 12 46 6f 78 20 53 70 6f 72 74 73 20 48 6f     Fox Sports Ho
0040 75 73 74 6f 6e 03 43 68 32 00 03 fc 80 1a 48 18  uston Ch2     H
0050 01 12 46 6f 78 20 53 70 6f 72 74 73 20 48 6f 75    Fox Sports Hou
0060 73 74 6f 6e 03 43 68 33 00 04 fc 80 1a 48 18 01  ston Ch3     H
0070 12 46 6f 78 20 53 70 6f 72 74 73 20 48 6f 75 73   Fox Sports Hous
0080 74 6f 6e 03 43 68 34 00 05 fc 80 1a 48 18 01 12  ton Ch4     H
0090 46 6f 78 20 53 70 6f 72 74 73 20 48 6f 75 73 74  Fox Sports Houst
00a0 6f 6e 03 43 68 35 00 06 fc 80 1a 48 18 01 12 46  on Ch5     H   F
00b0 6f 78 20 53 70 6f 72 74 73 20 48 6f 75 73 74 6f  ox Sports Housto
00c0 6e 03 43 68 36 82 44 06 cb ff ff ff ff ff ff ff  n Ch6 D





--- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index