Linux USB
 help / color / mirror / Atom feed
* [PATCH 0/4] Add XU support to UVC Gadget
@ 2022-11-02 15:17 Daniel Scally
  2022-11-02 15:17 ` [PATCH 1/4] usb: gadget: uvc: Make bSourceID read/write Daniel Scally
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Daniel Scally @ 2022-11-02 15:17 UTC (permalink / raw)
  To: linux-usb
  Cc: balbi, gregkh, laurent.pinchart, kieran.bingham, torleiv, mgr,
	Daniel Scally

Hello all

This series adds support for the definition of extension units in configfs for
the UVC Gadget. The XUs are modelled as config_items within a new "extensions"
group under control, which seemed like an appropriate place to put them.

To allow the XU's to be inserted in the function graph, the bSourceID attribute
for the default output terminal is made writeable - users will need to configure
it with the bUnitID of the XU that they want to use as the OT's source. This does
mean that the XUs can _only_ be placed immediately preceding the OT, but I think
that that's fine for now.

The XUs configured through this series have been tested via uvc-gadget, uvcvideo
and uvcdynctrl.

Thanks
Dan


Daniel Scally (4):
  usb: gadget: uvc: Make bSourceID read/write
  usb: gadget: uvc: Generalise helper functions for reuse
  usb: gadget: uvc: Allow definition of XUs in configfs
  usb: gadget: uvc: Copy XU descriptors during .bind()

 drivers/usb/gadget/function/f_uvc.c        |  44 ++
 drivers/usb/gadget/function/u_uvc.h        |   7 +
 drivers/usb/gadget/function/uvc.h          |   1 +
 drivers/usb/gadget/function/uvc_configfs.c | 580 +++++++++++++++++++--
 drivers/usb/gadget/function/uvc_configfs.h |  29 ++
 5 files changed, 607 insertions(+), 54 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-11-09 10:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-02 15:17 [PATCH 0/4] Add XU support to UVC Gadget Daniel Scally
2022-11-02 15:17 ` [PATCH 1/4] usb: gadget: uvc: Make bSourceID read/write Daniel Scally
2022-11-09 10:20   ` Greg KH
2022-11-09 10:21     ` Dan Scally
2022-11-02 15:17 ` [PATCH 2/4] usb: gadget: uvc: Generalise helper functions for reuse Daniel Scally
2022-11-02 15:17 ` [PATCH 3/4] usb: gadget: uvc: Allow definition of XUs in configfs Daniel Scally
2022-11-03 10:14   ` Dan Scally
2022-11-02 15:17 ` [PATCH 4/4] usb: gadget: uvc: Copy XU descriptors during .bind() Daniel Scally

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox