[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:
Sakari Ailus
2012-09-15 15:14:42 -03:00
committed by Mauro Carvalho Chehab
parent abd2329564
commit 8e6057b510
43 changed files with 61 additions and 70 deletions

View File

@@ -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;
}