Looking through the initialization info, I find:
kernel: Linux video capture interface: v1.00
kernel: i2c: initialized
kernel: Zoran ZR36060 + ZR36057/67 MJPEG board driver version 0.9
kernel: MJPEG[0]: Zoran ZR36067 (rev 2) irq: 9, memory: 0xa0005000
kernel: MJPEG[0]: subsystem vendor=0x1031 id=0x7efe
kernel: MJPEG[0]: Initializing i2c bus...
kernel: saa7110_attach: SAA7110A version 1 at 0x9c, status=0x21
kernel: adv7176_attach: adv7176 rev. 1 at 0x56
kernel: DC10plus[0] card detected
kernel: DC10plus[0]: Zoran ZR36060 (rev 1)
kernel: MJPEG: 1 card(s) found
kernel: MJPEG: using 2 V4L buffers of size 128 KB
kernel: DC10plus[0]: Initializing card[0], zr=c884c5e0
kernel: DC10plus[0]: Testing interrupts...
kernel: DC10plus[0]: interrupts received: GIRQ1:60 queue_state=0/0/0/0
kernel: DC10plus[0]: procfs entry /proc/zoran0 allocated. data=c884c5e0
Can I use any of this information to correctly set
my struct video_buffer before I call:
ioctl(fd, VIDIOCSFBUF, &vid_buf);
It sure looks like it gets set during initialization, so why is it
suddenly unset when I get around to changing the window size?
Thanks,
Tom
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tom Goetze
Sent: Tuesday, September 25, 2001 5:34 PM
To: Video4linux-List
Subject: [V4L] DC10Plus sizing problem
I have installed the latest zoran drivers, and
I can successfully open a video device, but when
I try to change the window size:
status = ioctl(fd,VIDIOCSWIN,&vid_win);
I always get a message in /var/log/messages:
DC10plus[0]: VIDIOCSWIN: frame buffer has to be set first
I have tried to use:
ret_code = ioctl(fd, VIDIOCSFBUF, &vid_buf);
where vid_buf.base = NULL, but this doesn't help, since
as soon as I call the size change, it still complains.
I have looked at the zoran.c and it appears that if
the base address of the video_buffer is NULL, then the
above error message is always displayed.
Is there a way I can get the address for my card?
The chipset is the ZR36060.
_______________________________________________
Video4linux-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list