mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
media: v4l2-event: keep track of the timestamp in ns
Internally use ktime_get_ns() to get the timestamp of the event. Only convert to timespec when interfacing with userspace. Signed-off-by: Hans Verkuil <[email protected]> Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
81a43d10b8
commit
63635b54e0
2 changed files with 11 additions and 10 deletions
|
|
@ -34,11 +34,13 @@ struct video_device;
|
|||
* @list: List node for the v4l2_fh->available list.
|
||||
* @sev: Pointer to parent v4l2_subscribed_event.
|
||||
* @event: The event itself.
|
||||
* @ts: The timestamp of the event.
|
||||
*/
|
||||
struct v4l2_kevent {
|
||||
struct list_head list;
|
||||
struct v4l2_subscribed_event *sev;
|
||||
struct v4l2_event event;
|
||||
u64 ts;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue