[media] exynos-gsc, m2m-deinterlace, mx2_emmaprp: Copy v4l2_buffer data from src...
authorSakari Ailus <sakari.ailus@iki.fi>
Sat, 8 Feb 2014 16:37:59 +0000 (13:37 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 5 Mar 2014 19:45:58 +0000 (16:45 -0300)
The timestamp and timecode fields were copied from destination to source,
not the other way around as they should. Fix it.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Acked-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/exynos-gsc/gsc-m2m.c
drivers/media/platform/m2m-deinterlace.c
drivers/media/platform/mx2_emmaprp.c

index 6741025e7dcb12b20661058b93f52273f9c1f30d..3a842ee38f9366360e3ddcf0859912bc8a81cb20 100644 (file)
@@ -88,8 +88,8 @@ 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;
+               dst_vb->v4l2_buf.timestamp = src_vb->v4l2_buf.timestamp;
+               dst_vb->v4l2_buf.timecode = src_vb->v4l2_buf.timecode;
 
                v4l2_m2m_buf_done(src_vb, vb_state);
                v4l2_m2m_buf_done(dst_vb, vb_state);
index f3a9e248ca4a1ab47e3f1f064ceaebc99daa6f1e..34161314ea0f2dc430c340c2e2a3b1d464282c1d 100644 (file)
@@ -207,8 +207,8 @@ 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;
+       dst_vb->v4l2_buf.timestamp = src_vb->v4l2_buf.timestamp;
+       dst_vb->v4l2_buf.timecode = src_vb->v4l2_buf.timecode;
 
        v4l2_m2m_buf_done(src_vb, VB2_BUF_STATE_DONE);
        v4l2_m2m_buf_done(dst_vb, VB2_BUF_STATE_DONE);
index af3e1069ac44a631213c3c9e3eded6484722cc97..6debb02ed501ff37f289f9e76d982626afcefad6 100644 (file)
@@ -377,8 +377,8 @@ 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;
+                       dst_vb->v4l2_buf.timestamp = src_vb->v4l2_buf.timestamp;
+                       dst_vb->v4l2_buf.timecode = src_vb->v4l2_buf.timecode;
 
                        spin_lock_irqsave(&pcdev->irqlock, flags);
                        v4l2_m2m_buf_done(src_vb, VB2_BUF_STATE_DONE);