linux/drivers/media/usb/uvc
Ricardo Ribalda a3d78e74dd media: uvcvideo: Only do uvc_video_get_time() if needed
There is no need to calculate the current time if the sample is going to
be filtered.

Move the assignment close to uvc_video_clock_add_sample().

Suggested-by: Hans de Goede <hansg@kernel.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Tested-by: Yunke Cao <yunkec@google.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Link: https://patch.msgid.link/20260513-uvc-hwtimestamp-v3-6-7a64838b0b02@chromium.org
Signed-off-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
2026-05-21 21:14:08 +02:00
..
Kconfig usb: uvc: move uvc_fmts and uvc_format_by_guid to own compile unit 2023-01-31 09:40:42 +01:00
Makefile
uvc_ctrl.c media: uvcvideo: Introduce allow_privacy_override module parameter 2026-05-12 07:30:53 +02:00
uvc_debugfs.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
uvc_driver.c media: uvcvideo: Introduce allow_privacy_override module parameter 2026-05-12 07:30:53 +02:00
uvc_entity.c media: uvcvideo: Use intf instead of udev for printks 2025-09-13 18:35:00 +02:00
uvc_isight.c media: uvcvideo: Add a stream backpointer in uvc_video_queue 2026-03-25 09:40:28 +01:00
uvc_metadata.c media: uvcvideo: Allow userspace to increase the meta buffersize 2026-03-25 09:40:28 +01:00
uvc_queue.c media: uvcvideo: Add a stream backpointer in uvc_video_queue 2026-03-25 09:40:28 +01:00
uvc_status.c media: uvcvideo: Fix deadlock if uvc_status_stop is called from async_ctrl.work 2026-05-21 21:14:07 +02:00
uvc_v4l2.c media: uvcvideo: Introduce allow_privacy_override module parameter 2026-05-12 07:30:53 +02:00
uvc_video.c media: uvcvideo: Only do uvc_video_get_time() if needed 2026-05-21 21:14:08 +02:00
uvcvideo.h media: uvcvideo: Do not add samples if dev_sof has not changed 2026-05-21 21:14:08 +02:00