Mailing List archive

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

[vdr] Re: Newstruct Problem: wasRe: Re: DiSEqC support



Reinhard Walter Buchner wrote:
> However, when I compile it I get the following error (which is why
> I thought you had to apply Klaus' patch):
>
> stack-boundary=2 -march=i586 -DMODULE -I.. -I. -g -DUSE_OSD
> -I../../include -c -o av7110.o av7110.c
> av7110.c: In function `vid_register':
> av7110.c:3325: too many arguments to function `video_register_device'
> make[4]: *** [av7110.o] Error 1
> make[4]: Leaving directory `/usr/local/src/DVB/driver/av7110'
> ...
> Line 3325 is:
> if( 0 > (video_register_device(&av7110->video, VFL_TYPE_GRABBER, -1)))

In the old-style driver the corresponding code is (dvb.c):
#if LINUX_VERSION_CODE < 0x020405
        if( 0 > (video_register_device(&dvb->video, VFL_TYPE_GRABBER))) {
#else
        if( 0 > (video_register_device(&dvb->video, VFL_TYPE_GRABBER, -1))) {
#endif
You may try and simply remove the last parameter. This should fix this error.
If you are lucky, this is the only problem due to your old kernel...

> I am using Suse 7.2 Pro Kernel 2.4.4. My DVB card is a Rev 1.6. In
> the old driver I had to add a line in dvb.c because it didn'
> recognize my DVB card (subsystem id was 0006, which wasn't defined.
> However, the NEWSTRUC driver is completely different. Any help would
> greatly be appreciated 

As you can see above, the number of parameters has changed in kernel 2.4.5.
Perhaps you should consider switching to a newer kernel. I'm using 2.4.19.

Oliver



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



Home | Main Index | Thread Index