media: s5p-tv: Fix Warn on driver probe
PATCH 1/1 media: s5p-tv: Fix Warn on driver probe
From 2cbf0f259fe24d0e3fe9f5b45036dcae3ffb6213 Mon Sep 17 00:00:00 2001
From: Mateusz Krawczuk<[email protected]>
Date: Wed, 3 Jul 2013 14:51:45 +0200
Subject: [PATCH] media: s5p-tv: Fix Warn on driver probe
The timestamp_type field in struct vb2_queue wasn`t initalized at s5p-tv probe. This caused warn on message at boot. This patch fixed this issue.
--- drivers/media/platform/s5p-tv/mixer_video.c | 1 + 1 file changed, 1 insertion(+)
drivers/media/platform/s5p-tv/mixer_video.c +1 -0
@@ -1125,6 +1125,7 @@ struct mxr_layer *mxr_base_layer_create(struct mxr_device *mdev, .buf_struct_size = sizeof(struct mxr_buffer), .ops = &mxr_video_qops, .mem_ops = &vb2_dma_contig_memops, + .timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC, };return layer;
-- 1.7.9.5
Hi Mateusz,
Thank you for this patch. However if you set timestamp type to monotonic it is necessary for the driver to set the timestamp value.
You can use the v4l2_get_timestamp helper to set the timestamp. According to the documentation it should be set to the time when the first data byte was sent to hardware.
Here you can find more information on how the timestamp field should be handled in drivers https://patchwork.linuxtv.org/patch/18813/
Best wishes,
Signature · 3 lines
Kamil Debski Linux Kernel Developer Samsung R&D Institute Poland
Quoted 42 lines
-----Original Message-----
From: [email protected] [mailto:linux-media- [email protected]] On Behalf Of Mateusz Krawczuk
Sent: Friday, July 05, 2013 9:39 AM
To: [email protected]
Subject: [PATCH] media: s5p-tv: Fix Warn on driver probeFrom
2cbf0f259fe24d0e3fe9f5b45036dcae3ffb6213Mon Sep 17 00:00:00 2001
From: Mateusz Krawczuk<[email protected]>
Date: Wed, 3 Jul 2013 14:51:45 +0200
Subject: [PATCH] media: s5p-tv: Fix Warn on driver probeThe
timestamp_typefield in structvb2_queuewasn`t initalized at s5p- tv probe.
This caused warn on message at boot. This patch fixed this issue.Signed-off-by Mateusz Krawczuk<[email protected]>--- drivers/media/platform/s5p-tv/mixer_video.c | 1 + 1 file changed, 1 insertion(+)drivers/media/platform/s5p-tv/mixer_video.c +1
-0@@ -1125,6 +1125,7 @@ struct mxr_layer *mxr_base_layer_create(structmxr_device *mdev, .buf_struct_size = sizeof(struct mxr_buffer), .ops = &mxr_video_qops, .mem_ops = &vb2_dma_contig_memops, + .timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC, };return layer;
-- 1.7.9.5--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html