The version 0.7 driver that comes with the 2.4.9 kernel does not work with my DC10+ (in PAL mode) but I have had some time now to look at the source. The solution appears to be quite simple.
For those wanting to get the zoran 0.8 driver working on 2.4.9, you need to add a third argument to the call to video_register_device() in zoran.c. The integer value of -1 seems to be OK. Does anyone know the reason behind this change? Will this fix work for multiple cards?
Ed-T.
Edward Tandi wrote:
I have upgraded my kernel to fix a certain VIA/IDE card driver problem. Unfortunately, I am having difficulty getting the video capture drivers going...
Normally, I build the zoran 0.8 driver, but the build falls over like this:
zoran.c: In function `zr36057_init':
zoran.c:4260: too few arguments to function `video_register_device_R3a7ce584'
make[2]: *** [zoran.o] Error 1
make[2]: Leaving directory `/big/samba/Other/LinuxBits/Video/Current/zoran-driver-0.8'
So, I presume the interface has changed. However, looking at what IS provided in the 2.4.9 kernel, there is a driver zr36067 module that seems to take the same options/arguments as the zoran driver. The system logs indicate:
Aug 29 11:36:25 gate kernel: Zoran ZR36060 + ZR36057/67 MJPEG board driver version 0.7
Aug 29 11:36:25 gate kernel: MJPEG[0]: Zoran ZR36067 (rev 2) irq: 9, memory: 0xdc021000
Aug 29 11:36:25 gate kernel: MJPEG[0]: subsystem vendor=0x1031 id=0x7efe
Aug 29 11:36:25 gate kernel: MJPEG[0]: Initializing i2c bus...
Aug 29 11:36:25 gate kernel: adv7176_attach: adv7176 rev. 1 at 0x56
Aug 29 11:36:25 gate kernel: DC10plus[0] card detected
Aug 29 11:36:25 gate kernel: DC10plus[0]: Zoran ZR36060 (rev 1)
Aug 29 11:36:25 gate kernel: MJPEG: 1 card(s) found
Aug 29 11:36:25 gate kernel: MJPEG: using 2 V4L buffers of size 1280 KB
Aug 29 11:36:25 gate kernel: DC10plus[0]: Initializing card[0], zr=e5d48960
Aug 29 11:36:26 gate kernel: DC10plus[0]: Testing interrupts...
Aug 29 11:36:26 gate kernel: DC10plus[0]: interrupts received: GIRQ1:51 queue_state=0/0/0/0
Aug 29 11:36:26 gate kernel: DC10plus[0]: procfs entry /proc/zoran0 allocated. data="">
OK, so it appears to be an earlier 0.7 version of the driver, but I remember this used to work. The problem I am getting occurs when I try to use any tools, like xawtv, or lavrec:
Aug 29 11:36:34 gate kernel: DC10plus[0]: No bigphysarea_patch present, usage of high memory disabled,
Aug 29 11:36:34 gate kernel: DC10plus[0]: sorry, could not allocate V4L buffers of size 1280 KB.
Aug 29 11:36:34 gate kernel: DC10plus[0]: zoran_open: v4l_fbuffer_alloc failed
Now, I would have thought this big physarea facility would be in 2.4.9 by default. Is there anything I need to do to configure this kernel? Or where do I get this patch from? Or is the bigphysarea_patch error message a red herring? I reserve memory using [append=" quiet mem=505M"] in the lilo boot configuration, so it's not as if the memory isn't there.
Suggestions? Ed-T.
_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com