[media] v4l: Helper function for obtaining timestamps
authorSakari Ailus <sakari.ailus@iki.fi>
Sat, 15 Sep 2012 10:51:47 +0000 (07:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 12:53:43 +0000 (10:53 -0200)
commitabd23295648a9e3ae72a806e70a510d3dcd8b374
treeee7c891cca5336c934c55daa6ddfcbca52e7729a
parent1202ecdc24fc88d5b144824f55ec9c8899591caf
[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>
drivers/media/v4l2-core/v4l2-common.c
include/media/v4l2-common.h