Mailing List archive

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

[linux-dvb] Re: Problems to install DVR



Hallo!

On Wednesday, 11. April 2001 21:33, Mario Goegel wrote:
> At 14:00 08.04.2001, Peter Seyringer wrote:
>
> >Apr 8 09:52:41 vdr kernel: dvb: dvb_mmap failed!
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> >Apr  8 09:52:41 vdr vdr[900]: probing /dev/video1
> >Apr  8 09:52:41 vdr modprobe: modprobe: Can't locate module
>
> char-major-81-1
>
> >Apr  8 09:52:41 vdr vdr[900]: ERROR: no video device found, giving
> > up!
> >
> >Klaus says, thats a error message from the driver not from vdr. The
> >logfile shows the same
> >
> >Can anyone help me?
>
> Kernel 2.4.3?
>
> If yes, use 2.4.2 or below....

dvb version 0.8.2 ?
Then I had the same problem on monday. The reason is that dvb 0.8.2 
uses two different videodev.h files:
DVB/driver/msp3400.c, DVB/driver/saa7146_v4l.c and, surprisingly, 
DVB/driver/videodev.c use the one in your current kernel-tree (#include 
<linux/videodev>), while DVB/driver/tuner.c and DVB/driver/dvb_v4l.h 
(and therefore VDR/eit.c, DVB/driver/dvb.h, VDR/dvbapi.h ... too) use 
DVB/driver/videodev.h (#include "videodev.h").

This worked with kernel versions prior to 2.4.3 (at least it did with 
2.4.2) because DVB/driver/videodev.h and the kernel videodev.h were 
"about the same". However, with 2.4.3 there is a significant difference 
in the video_device structure:

DVB/driver/videodev.h:
struct video_device
{
  	char name[32];
	int type;
	int hardware;
...

kernel 2.4.3 videodev.h:
struct video_device
{
	struct module *owner;
  	char name[32];
	int type;
	int hardware;
...

To get things working with 2.4.3, I removed DVB/driver/videodev.c and 
DVB/driver/videodev.h and created soft links to the kernel version of 
these files instead. Then I added the definitions of VID_TYPE_DVB and 
VID_PLAY_CLEAR_BUFFER to the kernel videodev.h file. Finally the 
initialization of dvb_template and vbi_template had to be adapted:
dvb_template = {
	NULL,	/*set pointer to owner to NULL*/
...

This results in the same behavior that DVB/driver/videodev.c had. At 
least it works for me.

Probably it would have been easier the other way round (replace the 
kernel videodev.* by soft links to DVB/driver/videodev.*) as long as no 
other program needs the new kernel 2.4.3 videodev.* syntax.

DVB/driver/videodev.* seems to have gone in the cvs version of dvb, so 
this problem should be gone as well.


I hope I could help,
Benjamin


P.S.: I subscribed this list after I read the html versions of the 
above postings, so I had to insert the In-Reply-To and References by 
hand. I am not sure if that worked.


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



Home | Main Index | Thread Index