media: videobuf: use u64 for the timestamp internally

Just like vb2 does, use u64 internally to store the timestamps
of the buffers. Only convert to timeval when interfacing with
userspace.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
Hans Verkuil
2019-01-21 08:32:23 -05:00
committed by Mauro Carvalho Chehab
parent 63635b54e0
commit 15a40b27be
13 changed files with 23 additions and 25 deletions

View File

@@ -80,7 +80,7 @@ struct videobuf_buffer {
struct list_head queue;
wait_queue_head_t done;
unsigned int field_count;
struct timeval ts;
u64 ts;
/* Memory type */
enum v4l2_memory memory;