pwc
[Top] [All Lists]

Re: [pwc] test for detecting PWC ?

To: Mathieu Bouchard <>
Subject: Re: [pwc] test for detecting PWC ?
From: Luc Saillard <>
Date: Sun, 15 Apr 2007 02:29:26 +0200
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

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU