Re: identifying camera sensor

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

 



On Thu, 5 Mar 2009, Tuukka.O Toivonen wrote:
> On Wednesday 04 March 2009 16:52:20 ext Hans Verkuil wrote:
> > > Alternatively, VIDIOC_QUERYCAP could be used to identify the sensor.
> > > Would it make more sense if it would return something like
> > >   capability.card:  `omap3/smia-sensor-12-1234-5678//'
> > > where 12 would be manufacturer_id, 1234 model_id, and
> > > 5678 revision_number?
> >
> > Yuck :-)
>
> Agreed :)
>
> Also, if there are many slaves, the length of the capability.card
> field is not sufficient.
>
> From: Trent Piepho <xyzzy@xxxxxxxxxxxxx>
> > You could always try to decode the manufacturer name and maybe even the
> > model name.  After all, pretty much every other driver does this.
>
> That would be possible, but the driver would then need a device name table
> which would need to be modified whenever a new chip comes up :(

Pretty much every single driver does this, so it's apparently not that
hard.

Another thing to consider, is that if the sensor has certain properties
that you want to know in user space, maybe the driver could provide those
properties drectly, instead of providing the sensor id and letting user
space app figure the properties from the id.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux