aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/platform/coda/coda-common.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c
index 58f65486de33..3259ea61cd9b 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -1244,9 +1244,7 @@ static int coda_start_streaming(struct vb2_queue *q, unsigned int count)
1244 1244
1245 q_data_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT); 1245 q_data_src = get_q_data(ctx, V4L2_BUF_TYPE_VIDEO_OUTPUT);
1246 if (q->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) { 1246 if (q->type == V4L2_BUF_TYPE_VIDEO_OUTPUT) {
1247 if (q_data_src->fourcc == V4L2_PIX_FMT_H264 || 1247 if (ctx->inst_type == CODA_INST_DECODER && ctx->use_bit) {
1248 (q_data_src->fourcc == V4L2_PIX_FMT_JPEG &&
1249 ctx->dev->devtype->product == CODA_7541)) {
1250 /* copy the buffers that were queued before streamon */ 1248 /* copy the buffers that were queued before streamon */
1251 mutex_lock(&ctx->bitstream_mutex); 1249 mutex_lock(&ctx->bitstream_mutex);
1252 coda_fill_bitstream(ctx, false); 1250 coda_fill_bitstream(ctx, false);