On Sat, Apr 14, 2007 at 09:28:57AM -0400, Mathieu Bouchard wrote:
>
> What's the correct way to detect that a V4L device is PWC ? I suppose that
> it's not sufficient to just look for "Logitech" in the device
> identification string. I can't just try PWC calls to see if they work,
> because some other driver stops working if I make a PWC call on it.
> What should I do?
>
> (BTW, I am still using the V4L1 interface. I planned to migrate to V4L2
> but still haven't)
>
from ioctl found in pwc-ioctl.h
/* This is a probe function; since so many devices are supported, it
becomes difficult to include all the names in programs that want to
check for the enhanced Philips stuff. So in stead, try this PROBE;
it returns a structure with the original name, and the corresponding
Philips type.
To use, fill the structure with zeroes, call PROBE and if that succeeds,
compare the name with that returned from VIDIOCGCAP; they should be the
same. If so, you can be assured it is a Philips (OEM) cam and the type
is valid.
*/
#define VIDIOCPWCPROBE _IOR('v', 199, struct pwc_probe)
Luc
_______________________________________________
pwc mailing list
http://lists.saillard.org/mailman/listinfo/pwc
|