]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: uvc: Make bSourceID read/write
authorDaniel Scally <dan.scally@ideasonboard.com>
Mon, 6 Feb 2023 16:17:52 +0000 (16:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:38 +0000 (13:55 +0100)
commit295a7dfb382210a97f37a0247f70bd7b275ded4f
tree6df6fd8517c2aabda6928f02310e57fc90531c54
parent5212510b687e1184ac14b952746e9d2837e59a27
usb: gadget: uvc: Make bSourceID read/write

[ Upstream commit dd4658813341eaa492f96ef28d4284f74e7de0fc ]

At the moment, the UVC function graph is hardcoded IT -> PU -> OT.
To add XU support we need the ability to insert the XU descriptors
into the chain. To facilitate that, make the output terminal's
bSourceID attribute writeable so that we can configure its source.

Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230206161802.892954-2-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/ABI/testing/configfs-usb-gadget-uvc
drivers/usb/gadget/function/uvc_configfs.c