Mailing List archive

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

[linux-dvb] Re: Poll problem with multiple PIDs



mocm@metzlerbros.de wrote:
> 
> Klaus Schmidinger writes:
>  >
>  > so that there are only three channels to receive, it works just fine.
>  > Also, if instead I comment out the "poll()" call, it runs fine.
>  >
>  > At this point I come to the conclusion that there must be a problem
>  > with the "poll" mechanism in the driver. Am I right about this, or
>  > am I doing something totally wrong here? Or is the driver/card simply
>  > unable to receive more than three channels?
>  >
> 
> I'll have to check what happens with the poll, but why don't you just
> take the entire TS from the transponder.

I've looked through the driver source and docs, but I'm afraid I don't
see how to get the entire TS. Can you please give me a pointer in the right
direction here?

> When you set that many
> filters on such high data rate PIDs the kernel has a lot of work to do
> comparing and copying. 

I thought that the filters were set up in the hardware, and that only those
packets that match any of the desired PIDs would actually get to the driver.
Wouldn't taking the entire TS (especially with several DVB cards) put a heavy
load on the PCI bus?

> Were there any POLLERR events?

I assume you are referring to the return value of the poll() function, right?
I changed the example this way:

        int res = poll(&pfd, 1, 10);
        if (res < 0)
           fprintf(stderr, "res = %d: %m\n", res);

but there was never an error message, even when only the dots were printed.

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________


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



Home | Main Index | Thread Index