All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Add copy time stamp handling to mem2mem drivers
@ 2013-04-25  9:49 Kamil Debski
  2013-04-25  9:49 ` [PATCH 1/7] s5p-g2d: Add copy time stamp handling Kamil Debski
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Kamil Debski @ 2013-04-25  9:49 UTC (permalink / raw)
  To: linux-media; +Cc: Kamil Debski

Hi,

This set of patches adds support for copy time stamp handling in the following
mem2mem drivers:
* CODA video codec
* Exynos GScaler
* m2m-deinterlace
* mx2_emmaprp
* Exynos G2D
* Exynos Jpeg
In addition there is a slight optimisation for the Exynos MFC driver.

Best wishes,
Kamil Debski

Kamil Debski (7):
  s5p-g2d: Add copy time stamp handling
  s5p-jpeg: Add copy time stamp handling
  s5p-mfc: Optimize copy time stamp handling
  coda: Add copy time stamp handling
  exynos-gsc: Add copy time stamp handling
  m2m-deinterlace: Add copy time stamp handling
  mx2-emmaprp: Add copy time stamp handling

 drivers/media/platform/coda.c               |    5 +++++
 drivers/media/platform/exynos-gsc/gsc-m2m.c |    5 +++++
 drivers/media/platform/m2m-deinterlace.c    |    5 +++++
 drivers/media/platform/mx2_emmaprp.c        |    5 +++++
 drivers/media/platform/s5p-g2d/g2d.c        |    5 +++++
 drivers/media/platform/s5p-jpeg/jpeg-core.c |    5 +++++
 drivers/media/platform/s5p-mfc/s5p_mfc.c    |   10 ++++------
 7 files changed, 34 insertions(+), 6 deletions(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 1/7] s5p-g2d: Add copy time stamp handling
  2013-04-25  9:49 [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Kamil Debski
@ 2013-04-25  9:49 ` Kamil Debski
  2013-04-25  9:49 ` [PATCH 2/7] s5p-jpeg: " Kamil Debski
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Kamil Debski @ 2013-04-25  9:49 UTC (permalink / raw)
  To: linux-media; +Cc: Kamil Debski, Kyungmin Park

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
 drivers/media/platform/s5p-g2d/g2d.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/media/platform/s5p-g2d/g2d.c b/drivers/media/platform/s5p-g2d/g2d.c
index 14d663d..553d87e 100644
--- a/drivers/media/platform/s5p-g2d/g2d.c
+++ b/drivers/media/platform/s5p-g2d/g2d.c
@@ -158,6 +158,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq,
 	src_vq->ops = &g2d_qops;
 	src_vq->mem_ops = &vb2_dma_contig_memops;
 	src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
+	src_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
 
 	ret = vb2_queue_init(src_vq);
 	if (ret)
@@ -169,6 +170,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq,
 	dst_vq->ops = &g2d_qops;
 	dst_vq->mem_ops = &vb2_dma_contig_memops;
 	dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
+	dst_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
 
 	return vb2_queue_init(dst_vq);
 }
@@ -635,6 +637,9 @@ static irqreturn_t g2d_isr(int irq, void *prv)
 	BUG_ON(src == NULL);
 	BUG_ON(dst == NULL);
 
+	dst->v4l2_buf.timecode = src->v4l2_buf.timecode;
+	dst->v4l2_buf.timestamp = src->v4l2_buf.timestamp;
+
 	v4l2_m2m_buf_done(src, VB2_BUF_STATE_DONE);
 	v4l2_m2m_buf_done(dst, VB2_BUF_STATE_DONE);
 	v4l2_m2m_job_finish(dev->m2m_dev, ctx->m2m_ctx);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 2/7] s5p-jpeg: Add copy time stamp handling
  2013-04-25  9:49 [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Kamil Debski
  2013-04-25  9:49 ` [PATCH 1/7] s5p-g2d: Add copy time stamp handling Kamil Debski
@ 2013-04-25  9:49 ` Kamil Debski
  2013-04-25  9:49 ` [PATCH 3/7] s5p-mfc: Optimize " Kamil Debski
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Kamil Debski @ 2013-04-25  9:49 UTC (permalink / raw)
  To: linux-media; +Cc: Kamil Debski, Kyungmin Park, Sylwester Nawrocki

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Sachin Kamat <sachin.kamat@linaro.org> 
---
 drivers/media/platform/s5p-jpeg/jpeg-core.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c
index 3b02375..15d2396 100644
--- a/drivers/media/platform/s5p-jpeg/jpeg-core.c
+++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c
@@ -1229,6 +1229,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq,
 	src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
 	src_vq->ops = &s5p_jpeg_qops;
 	src_vq->mem_ops = &vb2_dma_contig_memops;
+	src_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
 
 	ret = vb2_queue_init(src_vq);
 	if (ret)
@@ -1240,6 +1241,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq,
 	dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
 	dst_vq->ops = &s5p_jpeg_qops;
 	dst_vq->mem_ops = &vb2_dma_contig_memops;
+	dst_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
 
 	return vb2_queue_init(dst_vq);
 }
@@ -1287,6 +1289,9 @@ static irqreturn_t s5p_jpeg_irq(int irq, void *dev_id)
 		payload_size = jpeg_compressed_size(jpeg->regs);
 	}
 
+	dst_buf->v4l2_buf.timecode = src_buf->v4l2_buf.timecode;
+	dst_buf->v4l2_buf.timestamp = src_buf->v4l2_buf.timestamp;
+
 	v4l2_m2m_buf_done(src_buf, state);
 	if (curr_ctx->mode == S5P_JPEG_ENCODE)
 		vb2_set_plane_payload(dst_buf, 0, payload_size);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 3/7] s5p-mfc: Optimize copy time stamp handling
  2013-04-25  9:49 [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Kamil Debski
  2013-04-25  9:49 ` [PATCH 1/7] s5p-g2d: Add copy time stamp handling Kamil Debski
  2013-04-25  9:49 ` [PATCH 2/7] s5p-jpeg: " Kamil Debski
@ 2013-04-25  9:49 ` Kamil Debski
  2013-04-25  9:49 ` [PATCH 4/7] coda: Add " Kamil Debski
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Kamil Debski @ 2013-04-25  9:49 UTC (permalink / raw)
  To: linux-media; +Cc: Kamil Debski, Kyungmin Park, Jeongtae Park

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Jeongtae Park <jtp.park@samsung.com>
---
 drivers/media/platform/s5p-mfc/s5p_mfc.c |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index e810b1a..49f2d9f 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -243,12 +243,10 @@ static void s5p_mfc_handle_frame_copy_time(struct s5p_mfc_ctx *ctx)
 	src_buf = list_entry(ctx->src_queue.next, struct s5p_mfc_buf, list);
 	list_for_each_entry(dst_buf, &ctx->dst_queue, list) {
 		if (vb2_dma_contig_plane_dma_addr(dst_buf->b, 0) == dec_y_addr) {
-			memcpy(&dst_buf->b->v4l2_buf.timecode,
-				&src_buf->b->v4l2_buf.timecode,
-				sizeof(struct v4l2_timecode));
-			memcpy(&dst_buf->b->v4l2_buf.timestamp,
-				&src_buf->b->v4l2_buf.timestamp,
-				sizeof(struct timeval));
+			dst_buf->b->v4l2_buf.timecode =
+						src_buf->b->v4l2_buf.timecode;
+			dst_buf->b->v4l2_buf.timestamp =
+						src_buf->b->v4l2_buf.timestamp;
 			switch (frame_type) {
 			case S5P_FIMV_DECODE_FRAME_I_FRAME:
 				dst_buf->b->v4l2_buf.flags |=
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 4/7] coda: Add copy time stamp handling
  2013-04-25  9:49 [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Kamil Debski
                   ` (2 preceding siblings ...)
  2013-04-25  9:49 ` [PATCH 3/7] s5p-mfc: Optimize " Kamil Debski
@ 2013-04-25  9:49 ` Kamil Debski
  2013-04-25  9:49 ` [PATCH 5/7] exynos-gsc: " Kamil Debski
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Kamil Debski @ 2013-04-25  9:49 UTC (permalink / raw)
  To: linux-media; +Cc: Kamil Debski, Kyungmin Park, Javier Martin, Fabio Estevam

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de> 
Cc: Javier Martin <javier.martin@vista-silicon.com>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
---
 drivers/media/platform/coda.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/media/platform/coda.c b/drivers/media/platform/coda.c
index 20827ba..5612329 100644
--- a/drivers/media/platform/coda.c
+++ b/drivers/media/platform/coda.c
@@ -1422,6 +1422,7 @@ static int coda_queue_init(void *priv, struct vb2_queue *src_vq,
 	src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
 	src_vq->ops = &coda_qops;
 	src_vq->mem_ops = &vb2_dma_contig_memops;
+	src_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
 
 	ret = vb2_queue_init(src_vq);
 	if (ret)
@@ -1433,6 +1434,7 @@ static int coda_queue_init(void *priv, struct vb2_queue *src_vq,
 	dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
 	dst_vq->ops = &coda_qops;
 	dst_vq->mem_ops = &vb2_dma_contig_memops;
+	dst_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
 
 	return vb2_queue_init(dst_vq);
 }
@@ -1628,6 +1630,9 @@ static irqreturn_t coda_irq_handler(int irq, void *data)
 		dst_buf->v4l2_buf.flags &= ~V4L2_BUF_FLAG_KEYFRAME;
 	}
 
+	dst_buf->v4l2_buf.timestamp = src_buf->v4l2_buf.timestamp;
+	dst_buf->v4l2_buf.timecode = src_buf->v4l2_buf.timecode;
+
 	v4l2_m2m_buf_done(src_buf, VB2_BUF_STATE_DONE);
 	v4l2_m2m_buf_done(dst_buf, VB2_BUF_STATE_DONE);
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 5/7] exynos-gsc: Add copy time stamp handling
  2013-04-25  9:49 [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Kamil Debski
                   ` (3 preceding siblings ...)
  2013-04-25  9:49 ` [PATCH 4/7] coda: Add " Kamil Debski
@ 2013-04-25  9:49 ` Kamil Debski
  2013-04-25  9:49 ` Kamil Debski
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 12+ messages in thread
From: Kamil Debski @ 2013-04-25  9:49 UTC (permalink / raw)
  To: linux-media
  Cc: Kamil Debski, Kyungmin Park, Sylwester Nawrocki,
	Shaik Ameer Basha

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Shaik Ameer Basha <shaik.ameer@samsung.com>
---
 drivers/media/platform/exynos-gsc/gsc-m2m.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/media/platform/exynos-gsc/gsc-m2m.c b/drivers/media/platform/exynos-gsc/gsc-m2m.c
index 386c0a7..40a73f7 100644
--- a/drivers/media/platform/exynos-gsc/gsc-m2m.c
+++ b/drivers/media/platform/exynos-gsc/gsc-m2m.c
@@ -80,6 +80,9 @@ void gsc_m2m_job_finish(struct gsc_ctx *ctx, int vb_state)
 	dst_vb = v4l2_m2m_dst_buf_remove(ctx->m2m_ctx);
 
 	if (src_vb && dst_vb) {
+		src_vb->v4l2_buf.timestamp = dst_vb->v4l2_buf.timestamp;
+		src_vb->v4l2_buf.timecode = dst_vb->v4l2_buf.timecode;
+
 		v4l2_m2m_buf_done(src_vb, vb_state);
 		v4l2_m2m_buf_done(dst_vb, vb_state);
 
@@ -584,6 +587,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq,
 	src_vq->ops = &gsc_m2m_qops;
 	src_vq->mem_ops = &vb2_dma_contig_memops;
 	src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
+	src_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
 
 	ret = vb2_queue_init(src_vq);
 	if (ret)
@@ -596,6 +600,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq,
 	dst_vq->ops = &gsc_m2m_qops;
 	dst_vq->mem_ops = &vb2_dma_contig_memops;
 	dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
+	dst_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
 
 	return vb2_queue_init(dst_vq);
 }
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 5/7] exynos-gsc: Add copy time stamp handling
  2013-04-25  9:49 [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Kamil Debski
                   ` (4 preceding siblings ...)
  2013-04-25  9:49 ` [PATCH 5/7] exynos-gsc: " Kamil Debski
@ 2013-04-25  9:49 ` Kamil Debski
  2013-04-25  9:56   ` Kamil Debski
  2013-04-25  9:49 ` [PATCH 7/7] mx2-emmaprp: " Kamil Debski
                   ` (2 subsequent siblings)
  8 siblings, 1 reply; 12+ messages in thread
From: Kamil Debski @ 2013-04-25  9:49 UTC (permalink / raw)
  To: linux-media; +Cc: Kamil Debski, Kyungmin Park, Javier Martin

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Javier Martin <javier.martin@vista-silicon.com>
---
 drivers/media/platform/m2m-deinterlace.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-deinterlace.c
index 6c4db9b..7585646 100644
--- a/drivers/media/platform/m2m-deinterlace.c
+++ b/drivers/media/platform/m2m-deinterlace.c
@@ -207,6 +207,9 @@ static void dma_callback(void *data)
 	src_vb = v4l2_m2m_src_buf_remove(curr_ctx->m2m_ctx);
 	dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->m2m_ctx);
 
+	src_vb->v4l2_buf.timestamp = dst_vb->v4l2_buf.timestamp;
+	src_vb->v4l2_buf.timecode = dst_vb->v4l2_buf.timecode;
+
 	v4l2_m2m_buf_done(src_vb, VB2_BUF_STATE_DONE);
 	v4l2_m2m_buf_done(dst_vb, VB2_BUF_STATE_DONE);
 
@@ -866,6 +869,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq,
 	src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
 	src_vq->ops = &deinterlace_qops;
 	src_vq->mem_ops = &vb2_dma_contig_memops;
+	src_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
 	q_data[V4L2_M2M_SRC].fmt = &formats[0];
 	q_data[V4L2_M2M_SRC].width = 640;
 	q_data[V4L2_M2M_SRC].height = 480;
@@ -882,6 +886,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq,
 	dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
 	dst_vq->ops = &deinterlace_qops;
 	dst_vq->mem_ops = &vb2_dma_contig_memops;
+	dst_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
 	q_data[V4L2_M2M_DST].fmt = &formats[0];
 	q_data[V4L2_M2M_DST].width = 640;
 	q_data[V4L2_M2M_DST].height = 480;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 7/7] mx2-emmaprp: Add copy time stamp handling
  2013-04-25  9:49 [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Kamil Debski
                   ` (5 preceding siblings ...)
  2013-04-25  9:49 ` Kamil Debski
@ 2013-04-25  9:49 ` Kamil Debski
  2013-04-25  9:58 ` [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Hans Verkuil
  2013-04-25 10:07 ` Sylwester Nawrocki
  8 siblings, 0 replies; 12+ messages in thread
From: Kamil Debski @ 2013-04-25  9:49 UTC (permalink / raw)
  To: linux-media
  Cc: Kamil Debski, Kyungmin Park, Sylwester Nawrocki, Thierry Reding,
	Javier Martin

Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com> 
Cc: Thierry Reding <thierry.reding@avionic-design.de>
Cc: Javier Martin <javier.martin@vista-silicon.com>
---
 drivers/media/platform/mx2_emmaprp.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/media/platform/mx2_emmaprp.c b/drivers/media/platform/mx2_emmaprp.c
index 4b9e0a2..f7440e5 100644
--- a/drivers/media/platform/mx2_emmaprp.c
+++ b/drivers/media/platform/mx2_emmaprp.c
@@ -377,6 +377,9 @@ static irqreturn_t emmaprp_irq(int irq_emma, void *data)
 			src_vb = v4l2_m2m_src_buf_remove(curr_ctx->m2m_ctx);
 			dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->m2m_ctx);
 
+			src_vb->v4l2_buf.timestamp = dst_vb->v4l2_buf.timestamp;
+			src_vb->v4l2_buf.timecode = dst_vb->v4l2_buf.timecode;
+
 			spin_lock_irqsave(&pcdev->irqlock, flags);
 			v4l2_m2m_buf_done(src_vb, VB2_BUF_STATE_DONE);
 			v4l2_m2m_buf_done(dst_vb, VB2_BUF_STATE_DONE);
@@ -763,6 +766,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq,
 	src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
 	src_vq->ops = &emmaprp_qops;
 	src_vq->mem_ops = &vb2_dma_contig_memops;
+	src_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
 
 	ret = vb2_queue_init(src_vq);
 	if (ret)
@@ -774,6 +778,7 @@ static int queue_init(void *priv, struct vb2_queue *src_vq,
 	dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
 	dst_vq->ops = &emmaprp_qops;
 	dst_vq->mem_ops = &vb2_dma_contig_memops;
+	dst_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
 
 	return vb2_queue_init(dst_vq);
 }
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* RE: [PATCH 5/7] exynos-gsc: Add copy time stamp handling
  2013-04-25  9:49 ` Kamil Debski
@ 2013-04-25  9:56   ` Kamil Debski
  0 siblings, 0 replies; 12+ messages in thread
From: Kamil Debski @ 2013-04-25  9:56 UTC (permalink / raw)
  To: 'Kamil Debski', linux-media
  Cc: 'Kyungmin Park', 'Javier Martin'

Hi,

git send-email --dryrun had no errors, but during the real send it had a few
"Use of uninitialized value".
I think that this caused this patch to have a wrong subject. Sorry for that.

Best wishes,
-- 
Kamil Debski
Linux Platform Group
Samsung Poland R&D Center


> -----Original Message-----
> From: Kamil Debski [mailto:k.debski@samsung.com]
> Sent: Thursday, April 25, 2013 11:50 AM
> To: linux-media@vger.kernel.org
> Cc: Kamil Debski; Kyungmin Park; Javier Martin
> Subject: [PATCH 5/7] exynos-gsc: Add copy time stamp handling
> 
> Signed-off-by: Kamil Debski <k.debski@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> Cc: Javier Martin <javier.martin@vista-silicon.com>
> ---
>  drivers/media/platform/m2m-deinterlace.c |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/media/platform/m2m-deinterlace.c
> b/drivers/media/platform/m2m-deinterlace.c
> index 6c4db9b..7585646 100644
> --- a/drivers/media/platform/m2m-deinterlace.c
> +++ b/drivers/media/platform/m2m-deinterlace.c
> @@ -207,6 +207,9 @@ static void dma_callback(void *data)
>  	src_vb = v4l2_m2m_src_buf_remove(curr_ctx->m2m_ctx);
>  	dst_vb = v4l2_m2m_dst_buf_remove(curr_ctx->m2m_ctx);
> 
> +	src_vb->v4l2_buf.timestamp = dst_vb->v4l2_buf.timestamp;
> +	src_vb->v4l2_buf.timecode = dst_vb->v4l2_buf.timecode;
> +
>  	v4l2_m2m_buf_done(src_vb, VB2_BUF_STATE_DONE);
>  	v4l2_m2m_buf_done(dst_vb, VB2_BUF_STATE_DONE);
> 
> @@ -866,6 +869,7 @@ static int queue_init(void *priv, struct vb2_queue
> *src_vq,
>  	src_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
>  	src_vq->ops = &deinterlace_qops;
>  	src_vq->mem_ops = &vb2_dma_contig_memops;
> +	src_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
>  	q_data[V4L2_M2M_SRC].fmt = &formats[0];
>  	q_data[V4L2_M2M_SRC].width = 640;
>  	q_data[V4L2_M2M_SRC].height = 480;
> @@ -882,6 +886,7 @@ static int queue_init(void *priv, struct vb2_queue
> *src_vq,
>  	dst_vq->buf_struct_size = sizeof(struct v4l2_m2m_buffer);
>  	dst_vq->ops = &deinterlace_qops;
>  	dst_vq->mem_ops = &vb2_dma_contig_memops;
> +	dst_vq->timestamp_type = V4L2_BUF_FLAG_TIMESTAMP_COPY;
>  	q_data[V4L2_M2M_DST].fmt = &formats[0];
>  	q_data[V4L2_M2M_DST].width = 640;
>  	q_data[V4L2_M2M_DST].height = 480;
> --
> 1.7.9.5



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 0/7] Add copy time stamp handling to mem2mem drivers
  2013-04-25  9:49 [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Kamil Debski
                   ` (6 preceding siblings ...)
  2013-04-25  9:49 ` [PATCH 7/7] mx2-emmaprp: " Kamil Debski
@ 2013-04-25  9:58 ` Hans Verkuil
  2013-04-25 10:04   ` Kamil Debski
  2013-04-25 10:07 ` Sylwester Nawrocki
  8 siblings, 1 reply; 12+ messages in thread
From: Hans Verkuil @ 2013-04-25  9:58 UTC (permalink / raw)
  To: Kamil Debski; +Cc: linux-media

On Thu 25 April 2013 11:49:43 Kamil Debski wrote:
> Hi,
> 
> This set of patches adds support for copy time stamp handling in the following
> mem2mem drivers:

While you are at it, can you also take a look at this patch?

https://patchwork.linuxtv.org/patch/18025/

If it is OK, can you add it to your tree?

Regards,

	Hans

> * CODA video codec
> * Exynos GScaler
> * m2m-deinterlace
> * mx2_emmaprp
> * Exynos G2D
> * Exynos Jpeg
> In addition there is a slight optimisation for the Exynos MFC driver.
> 
> Best wishes,
> Kamil Debski
> 
> Kamil Debski (7):
>   s5p-g2d: Add copy time stamp handling
>   s5p-jpeg: Add copy time stamp handling
>   s5p-mfc: Optimize copy time stamp handling
>   coda: Add copy time stamp handling
>   exynos-gsc: Add copy time stamp handling
>   m2m-deinterlace: Add copy time stamp handling
>   mx2-emmaprp: Add copy time stamp handling
> 
>  drivers/media/platform/coda.c               |    5 +++++
>  drivers/media/platform/exynos-gsc/gsc-m2m.c |    5 +++++
>  drivers/media/platform/m2m-deinterlace.c    |    5 +++++
>  drivers/media/platform/mx2_emmaprp.c        |    5 +++++
>  drivers/media/platform/s5p-g2d/g2d.c        |    5 +++++
>  drivers/media/platform/s5p-jpeg/jpeg-core.c |    5 +++++
>  drivers/media/platform/s5p-mfc/s5p_mfc.c    |   10 ++++------
>  7 files changed, 34 insertions(+), 6 deletions(-)
> 
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* RE: [PATCH 0/7] Add copy time stamp handling to mem2mem drivers
  2013-04-25  9:58 ` [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Hans Verkuil
@ 2013-04-25 10:04   ` Kamil Debski
  0 siblings, 0 replies; 12+ messages in thread
From: Kamil Debski @ 2013-04-25 10:04 UTC (permalink / raw)
  To: 'Hans Verkuil'; +Cc: linux-media

Hi,

> From: Hans Verkuil [mailto:hverkuil@xs4all.nl]
> Sent: Thursday, April 25, 2013 11:59 AM
> 
> On Thu 25 April 2013 11:49:43 Kamil Debski wrote:
> > Hi,
> >
> > This set of patches adds support for copy time stamp handling in the
> > following mem2mem drivers:
> 
> While you are at it, can you also take a look at this patch?
> 
> https://patchwork.linuxtv.org/patch/18025/
> 
> If it is OK, can you add it to your tree?

No problem, will do.

Best wishes,
Kamil



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH 0/7] Add copy time stamp handling to mem2mem drivers
  2013-04-25  9:49 [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Kamil Debski
                   ` (7 preceding siblings ...)
  2013-04-25  9:58 ` [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Hans Verkuil
@ 2013-04-25 10:07 ` Sylwester Nawrocki
  8 siblings, 0 replies; 12+ messages in thread
From: Sylwester Nawrocki @ 2013-04-25 10:07 UTC (permalink / raw)
  To: Kamil Debski; +Cc: linux-media

On 04/25/2013 11:49 AM, Kamil Debski wrote:
> Hi,
> 
> This set of patches adds support for copy time stamp handling in the following
> mem2mem drivers:
> * CODA video codec
> * Exynos GScaler
> * m2m-deinterlace
> * mx2_emmaprp
> * Exynos G2D
> * Exynos Jpeg
> In addition there is a slight optimisation for the Exynos MFC driver.

The series looks good to me, but would be nice to have the commit message
not empty, so it is more clear why this change is needed.

Thanks,
Sylwester

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-04-25 10:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-25  9:49 [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Kamil Debski
2013-04-25  9:49 ` [PATCH 1/7] s5p-g2d: Add copy time stamp handling Kamil Debski
2013-04-25  9:49 ` [PATCH 2/7] s5p-jpeg: " Kamil Debski
2013-04-25  9:49 ` [PATCH 3/7] s5p-mfc: Optimize " Kamil Debski
2013-04-25  9:49 ` [PATCH 4/7] coda: Add " Kamil Debski
2013-04-25  9:49 ` [PATCH 5/7] exynos-gsc: " Kamil Debski
2013-04-25  9:49 ` Kamil Debski
2013-04-25  9:56   ` Kamil Debski
2013-04-25  9:49 ` [PATCH 7/7] mx2-emmaprp: " Kamil Debski
2013-04-25  9:58 ` [PATCH 0/7] Add copy time stamp handling to mem2mem drivers Hans Verkuil
2013-04-25 10:04   ` Kamil Debski
2013-04-25 10:07 ` Sylwester Nawrocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.