[linux-dvb] cx88-dvb - DMX_SET_SOURCE

Iuri Gomes Diniz iuri at digizap.com.br
Tue Feb 6 18:28:23 CET 2007

> On Mon, 2007-02-05 at 17:16 -0300, Iuri Gomes Diniz wrote:
>> I see that is possible to obtain the filtered data by read calls, but
>> what is the source? is it the frontend? or is it the dvr device
>> (dvr0)?
>>  I want to use the dvr.
> I have found  in linux/dvb/dmx.h (not documented in
> http://www.linuxtv.org/docs/dvbapi/DVB_Demux_Device.html)
> #define DMX_SET_SOURCE           _IOW('o', 49, dmx_source_t)
> so, is it the way? I will test. (I'm unable now).

So, I tested, and I got this error:
22:Invalid argument (EINVAL)

on ioctl (2):
EINVAL: Request or argp is not valid

My card uses the cx88-dvb module, is this call implemented?
is there another way to do this (input from dvr)?

A portion of my code:
        char* dmx_device =3D /dev/dvb/adapter0/demux0;
        dmx_source_t source;
        int fd;

        /* open demux */
        if ((fd =3D open(dmx_device, O_RDONLY | O_NONBLOCK)) =3D=3D -1)
            DEBUG("ERROR: while openning dmx_device: %s",
            return 1;
        /* set source */
        source =3D DMX_SOURCE_DVR0;
        if (ioctl(fd, DMX_SET_SOURCE, &source)) {
            DEBUG("ERROR: while doing ioctl on demux:%d:%s", errno,
            return 2;
        return 0;


Iuri Diniz

Na Digizap você tem 5GB de espaço para dividir como quiser em
até 50 contas de email!
Ligue e assine: 4008-9000

More information about the linux-dvb mailing list