Re: Question about USB interface index restriction in gspca

2011-09-21 Thread Jean-Francois Moine
On Mon, 19 Sep 2011 22:13:12 +0200 Frank Schäfer fschaefer@googlemail.com wrote: So, if your webcam is in the 99.99% which use the interface 0, use gspca_dev_probe(), otherwise, YOU know the right interface, so, call gspca_dev_probe2(). Isn't it also possible that we don't know the

Re: Question about USB interface index restriction in gspca

2011-09-19 Thread Frank Schäfer
Am 16.09.2011 08:33, schrieb Jean-Francois Moine: On Thu, 15 Sep 2011 23:46:57 +0200 Frank Schäferfschaefer@googlemail.com wrote: For webcam devices, the interface class is meaningful only when set to USB_CLASS_VIDEO (UVC). Otherwise, I saw many different values. Does that mean that

Re: Question about USB interface index restriction in gspca

2011-09-16 Thread Jean-Francois Moine
On Thu, 15 Sep 2011 23:46:57 +0200 Frank Schäfer fschaefer@googlemail.com wrote: For webcam devices, the interface class is meaningful only when set to USB_CLASS_VIDEO (UVC). Otherwise, I saw many different values. Does that mean that there are devices out in the wild that report for

Re: Question about USB interface index restriction in gspca

2011-09-15 Thread Frank Schäfer
Am 14.09.2011 08:25, schrieb Jean-Francois Moine: On Tue, 13 Sep 2011 21:14:28 +0200 Frank Schäferfschaefer@googlemail.com wrote: I have a question about the following code in gspca.c: in function gspca_dev_probe(...): ... /* the USB video interface must be the first one */

Re: Question about USB interface index restriction in gspca

2011-09-14 Thread Jean-Francois Moine
On Tue, 13 Sep 2011 21:14:28 +0200 Frank Schäfer fschaefer@googlemail.com wrote: I have a question about the following code in gspca.c: in function gspca_dev_probe(...): ... /* the USB video interface must be the first one */ if (dev-config-desc.bNumInterfaces != 1

Question about USB interface index restriction in gspca

2011-09-13 Thread Frank Schäfer
Hi, I have a question about the following code in gspca.c: in function gspca_dev_probe(...): ... /* the USB video interface must be the first one */ if (dev-config-desc.bNumInterfaces != 1 intf-cur_altsetting-desc.bInterfaceNumber != 0) return -ENODEV; ... Is