usb: gadget: uvc: implement dwPresentationTime and scrSourceClock
authorMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 22 Oct 2021 09:32:23 +0000 (11:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Oct 2021 07:20:08 +0000 (09:20 +0200)
commitfd03af27c3dfbff4f6b3905c5fceedebeca70e5e
treeef8b77e6849bdf547263dfc793b74feafb66f359
parentf262ce66d40cc6858d1fcb11e7b7f960448a4f38
usb: gadget: uvc: implement dwPresentationTime and scrSourceClock

This patch adds the fields UVC_STREAM_PTS and UVC_STREAM_SCR to the uvc
header, in case this data is available. It also enables the copy of the
timestamp to the vb2_v4l2_buffer by setting V4L2_BUF_FLAG_TIMESTAMP_COPY
in the queue.timestamp_flags.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20211022093223.26493-2-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/uvc.h
drivers/usb/gadget/function/uvc_queue.c
drivers/usb/gadget/function/uvc_video.c