[media] coda: remove unused isequence, reset qsequence in stop_streaming
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 23 Jan 2015 16:51:26 +0000 (13:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 2 Feb 2015 12:25:14 +0000 (10:25 -0200)
The isequence counter is never used, qsequence counts the buffers queued into
the bit decoder bitstream ringbuffer. It needs to be reset in stop_streaming.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/coda/coda-common.c
drivers/media/platform/coda/coda.h

index 5b3fd44ad4ccd3a44637d3e6fab4642848f44f70..de8ad49ac6ca5ffc0c297293a8288427c2499966 100644 (file)
@@ -1304,7 +1304,7 @@ static void coda_stop_streaming(struct vb2_queue *q)
 
                coda_bit_stream_end_flag(ctx);
 
-               ctx->isequence = 0;
+               ctx->qsequence = 0;
 
                while ((buf = v4l2_m2m_src_buf_remove(ctx->fh.m2m_ctx)))
                        v4l2_m2m_buf_done(buf, VB2_BUF_STATE_ERROR);
index 5dd47e5f97c1a8956997d252bb09e5523b738fc5..2ddfe51526fa27d48fc6bed61b71df5c66bf5232 100644 (file)
@@ -198,7 +198,6 @@ struct coda_ctx {
        int                             initialized;
        int                             streamon_out;
        int                             streamon_cap;
-       u32                             isequence;
        u32                             qsequence;
        u32                             osequence;
        u32                             sequence_offset;