mbox series

[0/3] usb: gadget: uvc: use configfs entries for negotiation and v4l2 VIDIOCS

Message ID 20210530222239.8793-1-m.grzeschik@pengutronix.de (mailing list archive)
Headers show
Series usb: gadget: uvc: use configfs entries for negotiation and v4l2 VIDIOCS | expand

Message

Michael Grzeschik May 30, 2021, 10:22 p.m. UTC
This series improves the uvc video gadget by parsing the configfs
entries. With the configfs data, the driver now is able to negotiate the
format with the usb host in the kernel and also exports the supported
frames/formats/intervals via the v4l2 VIDIOC interface.

Michael Grzeschik (3):
  usb: gadget: uvc: move structs to common header
  usb: gadget: uvc: add VIDIOC function
  usb: gadget: uvc: add format/frame handling code

 drivers/usb/gadget/function/f_uvc.c        | 324 +++++++++++++++++++-
 drivers/usb/gadget/function/uvc.h          |  32 +-
 drivers/usb/gadget/function/uvc_configfs.c | 116 +------
 drivers/usb/gadget/function/uvc_configfs.h | 121 ++++++++
 drivers/usb/gadget/function/uvc_queue.c    |   4 +-
 drivers/usb/gadget/function/uvc_v4l2.c     | 335 ++++++++++++++++++---
 drivers/usb/gadget/function/uvc_v4l2.h     |   1 +
 drivers/usb/gadget/function/uvc_video.c    |  23 +-
 8 files changed, 781 insertions(+), 175 deletions(-)

Comments

Paul Elder June 9, 2021, 9:39 a.m. UTC | #1
Hi Michael,

Thank you for the patch series.

On Mon, May 31, 2021 at 12:22:36AM +0200, Michael Grzeschik wrote:
> This series improves the uvc video gadget by parsing the configfs
> entries. With the configfs data, the driver now is able to negotiate the
> format with the usb host in the kernel and also exports the supported
> frames/formats/intervals via the v4l2 VIDIOC interface.

Sorry for the delay, I'll start looking at this (and your other series)
now.

Paul

> 
> Michael Grzeschik (3):
>   usb: gadget: uvc: move structs to common header
>   usb: gadget: uvc: add VIDIOC function
>   usb: gadget: uvc: add format/frame handling code
> 
>  drivers/usb/gadget/function/f_uvc.c        | 324 +++++++++++++++++++-
>  drivers/usb/gadget/function/uvc.h          |  32 +-
>  drivers/usb/gadget/function/uvc_configfs.c | 116 +------
>  drivers/usb/gadget/function/uvc_configfs.h | 121 ++++++++
>  drivers/usb/gadget/function/uvc_queue.c    |   4 +-
>  drivers/usb/gadget/function/uvc_v4l2.c     | 335 ++++++++++++++++++---
>  drivers/usb/gadget/function/uvc_v4l2.h     |   1 +
>  drivers/usb/gadget/function/uvc_video.c    |  23 +-
>  8 files changed, 781 insertions(+), 175 deletions(-)
> 
> -- 
> 2.29.2
>