OSDN Git Service

[media] uvcvideo: Add iFunction or iInterface to device names
authorPeter Boström <pbos@google.com>
Thu, 27 Apr 2017 12:28:18 +0000 (09:28 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Jun 2017 10:33:26 +0000 (07:33 -0300)
commite7b09f18ec79c002e2139d6a4df0110933743796
tree91b73f3550952ee87807351beab136dd4ced9456
parent7b848ed60f409ce860023c79aa9a5c8d1833ebab
[media] uvcvideo: Add iFunction or iInterface to device names

Permits distinguishing between two /dev/videoX entries from the same
physical UVC device (that naturally share the same iProduct name).

This change matches current Windows behavior by prioritizing iFunction
over iInterface, but unlike Windows it displays both iProduct and
iFunction/iInterface strings when both are available.

Signed-off-by: Peter Boström <pbos@google.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_driver.c