[media] uvcvideo: Fix alternate setting selection
commit4807063faa08f279b4ca9c2b1f0101a4670f7d43
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 21 Jun 2012 09:35:04 +0000 (21 06:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 6 Jul 2012 18:26:47 +0000 (6 15:26 -0300)
tree4e929cb998ac301f154f91afbf7d80b3214779a3
parentc854a48a97feb94ccd4501593badd1b9907326c2
[media] uvcvideo: Fix alternate setting selection

The alternate setting number is not equal to the alternate setting index
in the interface alternate settings table. Use the alternate setting
number from the interface descriptor when calling usb_set_interface().

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_video.c