aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/coda
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2015-07-09 06:10:15 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-07-17 10:14:00 -0400
commit30a09579b2e238646bca4e7cc443db24d91436d6 (patch)
treef86f80d9d5be4522d68b847908e55312bbe30c17 /drivers/media/platform/coda
parent58bc7edf1d9a16073761031a03291af887ccdf66 (diff)
[media] coda: keep buffers on the queue in bitstream end mode
In stream end mode the hardware will read the bitstream to its end, overshooting the write pointer. Do not write additional data into the bitstream in this mode. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/coda')
-rw-r--r--drivers/media/platform/coda/coda-bit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c
index 47fc2f19a4a9..0f8dcea065af 100644
--- a/drivers/media/platform/coda/coda-bit.c
+++ b/drivers/media/platform/coda/coda-bit.c
@@ -228,6 +228,9 @@ void coda_fill_bitstream(struct coda_ctx *ctx, bool streaming)
228 struct coda_buffer_meta *meta; 228 struct coda_buffer_meta *meta;
229 u32 start; 229 u32 start;
230 230
231 if (ctx->bit_stream_param & CODA_BIT_STREAM_END_FLAG)
232 return;
233
231 while (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) > 0) { 234 while (v4l2_m2m_num_src_bufs_ready(ctx->fh.m2m_ctx) > 0) {
232 /* 235 /*
233 * Only queue a single JPEG into the bitstream buffer, except 236 * Only queue a single JPEG into the bitstream buffer, except