The v4l2_timeval_to_ns() function is no longer needed in the
kernel after this, but there is userspace code relying on
it to be part of the uapi header. So use the v4l2_buffer_get_timestamp
interface

Signed-off-by: Xiaolei Wang <[email protected]>
---
 drivers/media/v4l2-core/videobuf-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/v4l2-core/videobuf-core.c 
b/drivers/media/v4l2-core/videobuf-core.c
index 2cf9b7890cf7..b2581e45ffe9 100644
--- a/drivers/media/v4l2-core/videobuf-core.c
+++ b/drivers/media/v4l2-core/videobuf-core.c
@@ -596,7 +596,7 @@ int videobuf_qbuf(struct videobuf_queue *q, struct 
v4l2_buffer *b)
                    || q->type == V4L2_BUF_TYPE_SLICED_VBI_OUTPUT
                    || q->type == V4L2_BUF_TYPE_SDR_OUTPUT) {
                        buf->field = b->field;
-                       buf->ts = v4l2_timeval_to_ns(&b->timestamp);
+                       buf->ts = v4l2_buffer_get_timestamp(b);
                }
                break;
        case V4L2_MEMORY_OVERLAY:
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9672): 
https://lists.yoctoproject.org/g/linux-yocto/message/9672
Mute This Topic: https://lists.yoctoproject.org/mt/81822951/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to