]> git.baikalelectronics.ru Git - kernel.git/commit
[media] gspca: provide a mechanism to select a specific transfer endpoint
authorAntonio Ospite <ao2@ao2.it>
Wed, 25 Jun 2014 09:27:56 +0000 (06:27 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 4 Jul 2014 17:50:11 +0000 (14:50 -0300)
commitd34425c355b4ff649ae7a79a846d3613f3712f0d
treedabdc7015cc8fb06b32b40619065ef69c4426709
parentafbf1bea4d5469853f79b7980784b11a0a02420e
[media] gspca: provide a mechanism to select a specific transfer endpoint

Currently gspca selects the first ISOC input endpoint as the input
transfer endpoint, however some devices can provide streams on endpoints
different then the first one, so some subdrivers (e.g. gspca_kinect) may
want to select a specific endpoint to use as a transfer endpoint.

Add an xfer_ep field to struct gspca_dev, and change alt_xfer() so that
it accepts a parameter which represents a specific endpoint address to
look for.

If a subdriver wants to specify a value for gspca_dev->xfer_ep it can do
that in its sd_config() callback.

Signed-off-by: Antonio Ospite <ao2@ao2.it>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/gspca/gspca.c
drivers/media/usb/gspca/gspca.h