]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: uvcvideo: Refactor clock circular buffer
authorRicardo Ribalda <ribalda@chromium.org>
Sat, 23 Mar 2024 10:48:06 +0000 (10:48 +0000)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 16 Jun 2024 21:58:45 +0000 (00:58 +0300)
commit141270bd95d48ea77adf2ea851e0621dc6725782
tree44a7b318ff56863c56bdfb128fa3aee03b443522
parent6243c83be6ee8d95cf5661b5a123621106491974
media: uvcvideo: Refactor clock circular buffer

Isolate all the changes related to the clock circular buffer to its own
function, that way we can make changes easier to the buffer logic.

Also simplify the lock, by removing the circular buffer clock handling
from uvc_video_clock_decode().

And now that we are at it, unify the API of the clock functions.

Tested-by: HungNien Chen <hn.chen@sunplusit.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Link: https://lore.kernel.org/r/20240323-resend-hwtimestamp-v10-5-b08e590d97c7@chromium.org
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/media/usb/uvc/uvc_video.c