Jeff Garzik writes:
> On 23 May 2000, Gerd Knorr wrote:
>
> > > > The Matrox Meteor II supports capturing simultaneously on three
> > > > channels.
> > > >
> > > > Do applications accomplish this by multiple open, or should the driver
> > > > register multiple v4l intefaces?
> >
> > multiple devices.
>
> Sigh. The number of channels exported by this device varies depending
> on channel capabilities and available memory (on-board and/or DMA).
>
> I guess I could just return error if the device can't satisfy a request
> to open device #3, when only devices up to #2 are allowed at that
> particular moment.
>
I would have the channel block when their wasn't enough resources....
(The decision on this is up to the device driver writer to compromise
with )....
This is what I do with our card that has 3 independant Video channels
- each with a ks chip doing the Video acquistion, into an FPGA
board... (the next revision has 4 channels ).
d2printk(PHX_INFO "About to register devices \n");
for(i=0; i < VIDCHANS; i++ ) {
ptv->vd[i].phxdevice = i;
ptv->vd[i].id = i;
/* Do any initialization here */
/* register the device */
memcpy(&ptv->vd[i].video_dev, &phx_template, sizeof(phx_template));
sprintf(ptv->vd[i].video_dev.name, PHX_NAME "-%u", ptv->vd[i].id);
dprintk("Registering device - %s devid=%d phxdevice=%d\n",
ptv->vd[i].video_dev.name, ptv->vd[i].id,
ptv->vd[i].phxdevice) ;
if (video_register_device(&ptv->vd[i].video_dev,
VFL_TYPE_GRABBER) < 0) {
dprintk("Video Register failed for id=%d\n", ptv->vd[i].id );
return EIO;
}
}
wes
Wesley Hosking, Atlantek Microsystems
[EMAIL PROTECTED] http://www.atlantek.com.au/USERS/wes
------------------------------------------------------------------------------
> How about the startup code? Is that freed from GPL?
Eyes: n, devices used to examine things to find answers.
Fingers: n, devices uses far too much to ask questions before Eyes (qv)
have been applied to problem documentation.
--
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.