summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2012-09-15 07:51:47 -0300
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:56:06 +0900
commitb07599e76a231ca1452d22ebaea3c223759cf5e2 (patch)
tree4072a4a12e3a7157f77722af5bf050dad7585829 /include/media
parent957f13395899a9bafe81ccb246c831b52858cfea (diff)
downloadlinux-3.10-b07599e76a231ca1452d22ebaea3c223759cf5e2.tar.gz
linux-3.10-b07599e76a231ca1452d22ebaea3c223759cf5e2.tar.bz2
linux-3.10-b07599e76a231ca1452d22ebaea3c223759cf5e2.zip
upstream: [media] v4l: Helper function for obtaining timestamps
v4l2_get_timestamp() produces a monotonic timestamp but unlike ktime_get_ts(), it uses struct timeval instead of struct timespec, saving the drivers the conversion job when getting timestamps for v4l2_buffer's timestamp field. 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>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h
index b7ea33e41ec..36bc1d9737c 100644
--- a/include/media/v4l2-common.h
+++ b/include/media/v4l2-common.h
@@ -214,4 +214,6 @@ const struct v4l2_frmsize_discrete *v4l2_find_nearest_format(
void v4l2_get_timestamp(struct timeval *tv);
+void v4l2_get_timestamp(struct timeval *tv);
+
#endif /* V4L2_COMMON_H_ */