linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/9] Add XU support to UVC Gadget
@ 2022-11-21  9:25 Daniel Scally
  2022-11-21  9:25 ` [PATCH v2 1/9] usb: gadget: uvc: Make bSourceID read/write Daniel Scally
                   ` (10 more replies)
  0 siblings, 11 replies; 32+ messages in thread
From: Daniel Scally @ 2022-11-21  9:25 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.

Series level changes:

  - Added patches 5-9 which additionally add the ability to create string
  descriptors through configfs and link them to the extension units as well as
  to override the default descriptors for the IAD and VC/VS interfaces

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

Thanks
Dan


Daniel Scally (9):
  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()
  usb: gadget: uvc: Support arbitrary string descriptors
  usb: gadget: uvc: Allow linking XUs to string descriptors
  usb: gadget: uvc: Attach custom string descriptors
  usb: gadget: uvc: Allow linking function to string descs
  usb: gadget: uvc: Use custom strings if available

 .../ABI/testing/configfs-usb-gadget-uvc       |   50 +-
 drivers/usb/gadget/function/f_uvc.c           |  134 +-
 drivers/usb/gadget/function/u_uvc.h           |   22 +
 drivers/usb/gadget/function/uvc.h             |    1 +
 drivers/usb/gadget/function/uvc_configfs.c    | 1087 ++++++++++++++++-
 drivers/usb/gadget/function/uvc_configfs.h    |   60 +
 6 files changed, 1283 insertions(+), 71 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2023-01-25 12:27 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-21  9:25 [PATCH v2 0/9] Add XU support to UVC Gadget Daniel Scally
2022-11-21  9:25 ` [PATCH v2 1/9] usb: gadget: uvc: Make bSourceID read/write Daniel Scally
2022-12-29  0:30   ` Laurent Pinchart
2022-12-29  0:30     ` Laurent Pinchart
2023-01-01 21:18       ` Dan Scally
2023-01-02 11:14         ` Laurent Pinchart
2023-01-25 12:27           ` Dan Scally
2022-11-21  9:25 ` [PATCH v2 2/9] usb: gadget: uvc: Generalise helper functions for reuse Daniel Scally
2022-12-29  0:48   ` Laurent Pinchart
2022-11-21  9:25 ` [PATCH v2 3/9] usb: gadget: uvc: Allow definition of XUs in configfs Daniel Scally
2022-11-22  1:32   ` kernel test robot
2022-12-29  1:35   ` Laurent Pinchart
2022-11-21  9:25 ` [PATCH v2 4/9] usb: gadget: uvc: Copy XU descriptors during .bind() Daniel Scally
2022-11-21  9:51   ` Dan Scally
2022-12-29  1:46     ` Laurent Pinchart
2022-11-21  9:25 ` [PATCH v2 5/9] usb: gadget: uvc: Support arbitrary string descriptors Daniel Scally
2022-11-21 11:33   ` kernel test robot
2022-12-29  1:56   ` Laurent Pinchart
2022-11-21  9:25 ` [PATCH v2 6/9] usb: gadget: uvc: Allow linking XUs to " Daniel Scally
2022-12-29  2:05   ` Laurent Pinchart
2023-01-01 21:09     ` Dan Scally
2023-01-02 12:25       ` Laurent Pinchart
2023-01-24 15:58         ` Dan Scally
2022-11-21  9:25 ` [PATCH v2 7/9] usb: gadget: uvc: Attach custom " Daniel Scally
2022-11-21  9:25 ` [PATCH v2 8/9] usb: gadget: uvc: Allow linking function to string descs Daniel Scally
2022-11-21  9:57   ` Dan Scally
2022-12-29  2:08     ` Laurent Pinchart
2022-12-29 14:59       ` Alan Stern
2022-11-21  9:25 ` [PATCH v2 9/9] usb: gadget: uvc: Use custom strings if available Daniel Scally
2022-12-12  9:57 ` [PATCH v2 0/9] Add XU support to UVC Gadget Dan Scally
2022-12-29  0:18 ` Laurent Pinchart
2023-01-01 20:34   ` Dan Scally

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).