diff options
Diffstat (limited to 'drivers/media/platform/coda/coda-common.c')
-rw-r--r-- | drivers/media/platform/coda/coda-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/platform/coda/coda-common.c b/drivers/media/platform/coda/coda-common.c index c8811b7fa137..8e6fe0200117 100644 --- a/drivers/media/platform/coda/coda-common.c +++ b/drivers/media/platform/coda/coda-common.c | |||
@@ -1192,7 +1192,7 @@ static void coda_buf_queue(struct vb2_buffer *vb) | |||
1192 | mutex_lock(&ctx->bitstream_mutex); | 1192 | mutex_lock(&ctx->bitstream_mutex); |
1193 | v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vb); | 1193 | v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vb); |
1194 | if (vb2_is_streaming(vb->vb2_queue)) | 1194 | if (vb2_is_streaming(vb->vb2_queue)) |
1195 | coda_fill_bitstream(ctx); | 1195 | coda_fill_bitstream(ctx, true); |
1196 | mutex_unlock(&ctx->bitstream_mutex); | 1196 | mutex_unlock(&ctx->bitstream_mutex); |
1197 | } else { | 1197 | } else { |
1198 | v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vb); | 1198 | v4l2_m2m_buf_queue(ctx->fh.m2m_ctx, vb); |
@@ -1252,9 +1252,9 @@ static int coda_start_streaming(struct vb2_queue *q, unsigned int count) | |||
1252 | if (q_data_src->fourcc == V4L2_PIX_FMT_H264 || | 1252 | if (q_data_src->fourcc == V4L2_PIX_FMT_H264 || |
1253 | (q_data_src->fourcc == V4L2_PIX_FMT_JPEG && | 1253 | (q_data_src->fourcc == V4L2_PIX_FMT_JPEG && |
1254 | ctx->dev->devtype->product == CODA_7541)) { | 1254 | ctx->dev->devtype->product == CODA_7541)) { |
1255 | /* copy the buffers that where queued before streamon */ | 1255 | /* copy the buffers that were queued before streamon */ |
1256 | mutex_lock(&ctx->bitstream_mutex); | 1256 | mutex_lock(&ctx->bitstream_mutex); |
1257 | coda_fill_bitstream(ctx); | 1257 | coda_fill_bitstream(ctx, false); |
1258 | mutex_unlock(&ctx->bitstream_mutex); | 1258 | mutex_unlock(&ctx->bitstream_mutex); |
1259 | 1259 | ||
1260 | if (coda_get_bitstream_payload(ctx) < 512) { | 1260 | if (coda_get_bitstream_payload(ctx) < 512) { |