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",
strerror(errno));
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,
strerror(errno));
close(fd);
return 2;
}
close(fd);
return 0;
thanks
Iuri Diniz
http://clx.digi.com.br
_______________________________________________________________
Na Digizap você tem 5GB de espaço para dividir como quiser em
até 50 contas de email!
Ligue e assine: 4008-9000
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb