]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: uvc: allow changing interface name via configfs
authorDan Vacura <w36195@motorola.com>
Fri, 1 Apr 2022 16:04:45 +0000 (11:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Apr 2022 16:14:34 +0000 (18:14 +0200)
commit4908ad61eb93c9fd92f8d203b4b1e24604634412
tree7b4960a98ae5bb14a23602c3485f646c3a44b621
parentdbb008736a8c113ef1e12b4e4b4351fac2a15ede
usb: gadget: uvc: allow changing interface name via configfs

Add a configfs entry, "function_name", to change the iInterface field
for VideoControl. This name is used on host devices for user selection,
useful when multiple cameras are present. The default will remain "UVC
Camera".

Signed-off-by: Dan Vacura <w36195@motorola.com>
Link: https://lore.kernel.org/r/20220401160447.5919-1-w36195@motorola.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/configfs-usb-gadget-uvc
Documentation/usb/gadget-testing.rst
drivers/usb/gadget/function/f_uvc.c
drivers/usb/gadget/function/u_uvc.h
drivers/usb/gadget/function/uvc_configfs.c