Question about USB interface index restriction in gspca
- Subject: Question about USB interface index restriction in gspca
- From: Frank Schäfer <fschaefer.oss@xxxxxxxxxxxxxx>
- Date: Tue, 13 Sep 2011 21:14:28 +0200
- User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.22) Gecko/20110907 SUSE/3.1.14 Lightning/1.0b2 Thunderbird/3.1.14
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 there a special reason for not allowing devices with USB interface
index > 0 for video ?
I'm experimenting with a device that has the video interface at index 3
and two audio interfaces at index 0 and 1 (index two is missing !).
And the follow-up question: can we assume that all device handled by the
gspca-driver have vendor specific video interfaces ?
Then we could change the code to
...
/* the USB video interface must be of class vendor */
if (intf->cur_altsetting->desc.bInterfaceClass !=
USB_CLASS_VENDOR_SPEC)
return -ENODEV;
...
Regards,
Frank
--
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
[Linux Input]
[Video for Linux]
[Mplayer Users]
[Linux USB Devel]
[Linux Audio Users]
[Photos]
[Yosemite Photos]
[Linux Kernel]
[Linux SCSI]
[XFree86]
[Devices]
[Yosemite Backpacking]