This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: ti-vpe: vpe: fix a v4l2-compliance failure about frame sequence 
number
Author:  Benoit Parrot <bpar...@ti.com>
Date:    Mon Oct 7 12:10:00 2019 -0300

v4l2-compliance fails with this message:

   fail: v4l2-test-buffers.cpp(294): \
        (int)g_sequence() < seq.last_seq + 1
   fail: v4l2-test-buffers.cpp(740): \
        buf.check(m2m_q, last_m2m_seq)
   fail: v4l2-test-buffers.cpp(974): \
        captureBufs(node, q, m2m_q, frame_count, true)
   test MMAP: FAIL

The driver is failing to update the source frame sequence number in the
vb2 buffer object. Only the destination frame sequence was being
updated.

This is only a reporting issue if the user space app actually cares
about the frame sequence number. But it is fixed nonetheless.

Signed-off-by: Benoit Parrot <bpar...@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkei...@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+sams...@kernel.org>

 drivers/media/platform/ti-vpe/vpe.c | 1 +
 1 file changed, 1 insertion(+)

---

diff --git a/drivers/media/platform/ti-vpe/vpe.c 
b/drivers/media/platform/ti-vpe/vpe.c
index 0a7cf9c820c6..8ab1c3241b74 100644
--- a/drivers/media/platform/ti-vpe/vpe.c
+++ b/drivers/media/platform/ti-vpe/vpe.c
@@ -1440,6 +1440,7 @@ static irqreturn_t vpe_irq(int irq_vpe, void *data)
                d_vb->timecode = s_vb->timecode;
 
        d_vb->sequence = ctx->sequence;
+       s_vb->sequence = ctx->sequence;
 
        d_q_data = &ctx->q_data[Q_DATA_DST];
        if (d_q_data->flags & Q_IS_INTERLACED) {

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to