From: "Frank Schäfer" <fschaefer.oss@googlemail.com>
To: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Question about USB interface index restriction in gspca
Date: Tue, 13 Sep 2011 21:14:28 +0200 [thread overview]
Message-ID: <4E6FAB94.2010007@googlemail.com> (raw)
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
next reply other threads:[~2011-09-13 19:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-13 19:14 Frank Schäfer [this message]
2011-09-14 6:25 ` Question about USB interface index restriction in gspca Jean-Francois Moine
2011-09-15 21:46 ` Frank Schäfer
2011-09-16 6:33 ` Jean-Francois Moine
2011-09-19 20:13 ` Frank Schäfer
2011-09-21 8:29 ` Jean-Francois Moine
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E6FAB94.2010007@googlemail.com \
--to=fschaefer.oss@googlemail.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox