media: mtk-vcodec: remove ready_to_display
This member is never read throughout the code, so remove it. Signed-off-by: Alexandre Courbot <acourbot@chromium.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
52fafc58c3
commit
99df48ec7c
|
@ -133,8 +133,6 @@ static struct vb2_buffer *get_display_buffer(struct mtk_vcodec_ctx *ctx)
|
||||||
vb2_set_plane_payload(&dstbuf->vb.vb2_buf, 1,
|
vb2_set_plane_payload(&dstbuf->vb.vb2_buf, 1,
|
||||||
ctx->picinfo.c_bs_sz);
|
ctx->picinfo.c_bs_sz);
|
||||||
|
|
||||||
dstbuf->ready_to_display = true;
|
|
||||||
|
|
||||||
mtk_v4l2_debug(2,
|
mtk_v4l2_debug(2,
|
||||||
"[%d]status=%x queue id=%d to done_list %d",
|
"[%d]status=%x queue id=%d to done_list %d",
|
||||||
ctx->id, disp_frame_buffer->status,
|
ctx->id, disp_frame_buffer->status,
|
||||||
|
@ -1122,11 +1120,9 @@ static void vb2ops_vdec_buf_queue(struct vb2_buffer *vb)
|
||||||
v4l2_m2m_buf_queue(ctx->m2m_ctx, vb2_v4l2);
|
v4l2_m2m_buf_queue(ctx->m2m_ctx, vb2_v4l2);
|
||||||
buf->queued_in_vb2 = true;
|
buf->queued_in_vb2 = true;
|
||||||
buf->queued_in_v4l2 = true;
|
buf->queued_in_v4l2 = true;
|
||||||
buf->ready_to_display = false;
|
|
||||||
} else {
|
} else {
|
||||||
buf->queued_in_vb2 = false;
|
buf->queued_in_vb2 = false;
|
||||||
buf->queued_in_v4l2 = true;
|
buf->queued_in_v4l2 = true;
|
||||||
buf->ready_to_display = false;
|
|
||||||
}
|
}
|
||||||
mutex_unlock(&ctx->lock);
|
mutex_unlock(&ctx->lock);
|
||||||
return;
|
return;
|
||||||
|
@ -1253,7 +1249,6 @@ static int vb2ops_vdec_buf_init(struct vb2_buffer *vb)
|
||||||
|
|
||||||
if (vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
|
if (vb->vb2_queue->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
|
||||||
buf->used = false;
|
buf->used = false;
|
||||||
buf->ready_to_display = false;
|
|
||||||
buf->queued_in_v4l2 = false;
|
buf->queued_in_v4l2 = false;
|
||||||
} else {
|
} else {
|
||||||
buf->lastframe = false;
|
buf->lastframe = false;
|
||||||
|
|
|
@ -45,7 +45,6 @@ struct vdec_fb {
|
||||||
* @list: link list
|
* @list: link list
|
||||||
* @used: Capture buffer contain decoded frame data and keep in
|
* @used: Capture buffer contain decoded frame data and keep in
|
||||||
* codec data structure
|
* codec data structure
|
||||||
* @ready_to_display: Capture buffer not display yet
|
|
||||||
* @queued_in_vb2: Capture buffer is queue in vb2
|
* @queued_in_vb2: Capture buffer is queue in vb2
|
||||||
* @queued_in_v4l2: Capture buffer is in v4l2 driver, but not in vb2
|
* @queued_in_v4l2: Capture buffer is in v4l2 driver, but not in vb2
|
||||||
* queue yet
|
* queue yet
|
||||||
|
@ -60,7 +59,6 @@ struct mtk_video_dec_buf {
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
|
|
||||||
bool used;
|
bool used;
|
||||||
bool ready_to_display;
|
|
||||||
bool queued_in_vb2;
|
bool queued_in_vb2;
|
||||||
bool queued_in_v4l2;
|
bool queued_in_v4l2;
|
||||||
bool lastframe;
|
bool lastframe;
|
||||||
|
|
Loading…
Reference in New Issue