Skip to content

UVC webcam gadget related changes

Bhupesh Sharma linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5usb: gadget/uvc: Fix string descriptor STALL issue when multiple uvc functions are added to a configurationdrivers/usb/gadget/f_uvc.c+22 -160 replies
2/5usb: gadget/uvc: Use macro for interrupt endpoint status size instead of using a MAGIC numberdrivers/usb/gadget/f_uvc.c+4 -20 replies
3/5usb: gadget/uvc: Add super-speed support to UVC webcam gadgetdrivers/usb/gadget/f_uvc.c drivers/usb/gadget/f_uvc.h drivers/usb/gadget/uvc.h +1 more+247 -354 replies
4/5usb: gadget/uvc: Port UVC webcam gadget to use videobuf2 frameworkdrivers/usb/gadget/Kconfig drivers/usb/gadget/uvc_queue.c drivers/usb/gadget/uvc_queue.h +2 more+184 -41814 replies
5/5usb: gadget/uvc: Add support for 'USB_GADGET_DELAYED_STATUS' response for a set_intf(alt-set 1) commanddrivers/usb/gadget/f_uvc.c drivers/usb/gadget/uvc.h drivers/usb/gadget/uvc_v4l2.c+51 -75 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] UVC webcam gadget related changes

This patchset tries to take the UVC webcam gadget one step
closer to being used with a real V4L2 video capture device (via
a user-space application which is responsible for ensuring correct sequence of operations being performed on both UVC gadget and V4L2 capture device end).

A major change introduced by this patchset is to port UVC webcam gadget to use videobuf2 framework for videobuffer managment and exposes USER_PTR IO method at the UVC gadget side to ensure "zero-copy" of video data as it passes from V4L2 capture driver domain to UVC gadget domain. (Thanks to Laurent Pinchart for suggesting this design change).

I have tested this patchset on a super-speed compliant USB device controller, with the VIVI capture device acting as a dummy source of video data and I have modified the 'uvc-gadget' application written by Laurent (original application available
here: http://git.ideasonboard.org/uvc-gadget.git) for testing the complete flow from V4L2 to UVC domain and vice versa.

Bhupesh Sharma (5):
usb: gadget/uvc: Fix string descriptor STALL issue when multiple uvc
functions are added to a configuration
usb: gadget/uvc: Use macro for interrupt endpoint status size instead
of using a MAGIC number
usb: gadget/uvc: Add super-speed support to UVC webcam gadget
usb: gadget/uvc: Port UVC webcam gadget to use videobuf2 framework
usb: gadget/uvc: Add support for 'USB_GADGET_DELAYED_STATUS' response
for a set_intf(alt-set 1) command

 drivers/usb/gadget/Kconfig     |    1 +
 drivers/usb/gadget/f_uvc.c     |  304 +++++++++++++++++++----
 drivers/usb/gadget/f_uvc.h     |    8 +-
 drivers/usb/gadget/uvc.h       |    7 +-
 drivers/usb/gadget/uvc_queue.c |  524 +++++++++++-----------------------------
 drivers/usb/gadget/uvc_queue.h |   25 +--
 drivers/usb/gadget/uvc_v4l2.c  |   73 ++++--
 drivers/usb/gadget/uvc_video.c |   17 +-
 drivers/usb/gadget/webcam.c    |   29 ++-
 9 files changed, 509 insertions(+), 479 deletions(-)
Signature · 1 line
1.7.2.2