diff options
| author | Sakari Ailus <[email protected]> | 2012-09-15 18:14:42 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2012-12-21 12:56:43 +0000 |
| commit | 8e6057b510aad354e017c6dfca7f386a0eb91b63 (patch) | |
| tree | ac76cc2593f255325972f05bde025954f2d3b41c /drivers/media/usb/pwc/pwc-if.c | |
| parent | [media] v4l: Helper function for obtaining timestamps (diff) | |
| download | kernel-8e6057b510aad354e017c6dfca7f386a0eb91b63.tar.gz kernel-8e6057b510aad354e017c6dfca7f386a0eb91b63.zip | |
[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 <[email protected]>
Acked-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/usb/pwc/pwc-if.c')
| -rw-r--r-- | drivers/media/usb/pwc/pwc-if.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c index 5210239cbaee..21c15233c6ae 100644 --- a/drivers/media/usb/pwc/pwc-if.c +++ b/drivers/media/usb/pwc/pwc-if.c @@ -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; } |
