]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: uvc: add v4l2 enumeration api calls
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Fri, 9 Sep 2022 22:13:34 +0000 (00:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2022 13:52:30 +0000 (15:52 +0200)
commit4868550ba52f22d49617763033f5ad8a268f5529
tree9e72b83497f56d2fb18d087bee60c7d33471946b
parent9f43f1912d8dde681e24526e0d7e980900f965bd
usb: gadget: uvc: add v4l2 enumeration api calls

This patch adds support to the v4l2 VIDIOCs for enum_format,
enum_framesizes and enum_frameintervals. This way, the userspace
application can use these VIDIOCS to query the via configfs exported
frame capabilities. With thes callbacks the userspace doesn't have to
bring its own configfs parser.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20220909221335.15033-4-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_uvc.c
drivers/usb/gadget/function/uvc.h
drivers/usb/gadget/function/uvc_v4l2.c