[media] v4l: Convert drivers to use monotonic timestamps
Convert drivers using wall clock time (CLOCK_REALTIME) to timestamp from the monotonic timer (CLOCK_MONOTONIC). Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
abd2329564
commit
8e6057b510
@@ -316,7 +316,8 @@ static void pwc_isoc_handler(struct urb *urb)
|
||||
struct pwc_frame_buf *fbuf = pdev->fill_buf;
|
||||
|
||||
if (pdev->vsync == 1) {
|
||||
do_gettimeofday(&fbuf->vb.v4l2_buf.timestamp);
|
||||
v4l2_get_timestamp(
|
||||
&fbuf->vb.v4l2_buf.timestamp);
|
||||
pdev->vsync = 2;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user