Skip to content

Commit a394c3f

Browse files
Aakarsh JainHans Verkuil
authored andcommitted
media: s5p-mfc: Set context for valid case before calling try_run
Context bit is set for hardware execution if there is a buffer in source and destination queue before calling try_run in the init_buffers function. Now there will be a new context created and hardware will be invoked for the buffer queued instead of waiting for another buffer to be queued from userspace to set this context bit for hw execution. Cc: linux-fsd@tesla.com Signed-off-by: Smitha T Murthy <smithatmurthy@gmail.com> Signed-off-by: Aakarsh Jain <aakarsh.jain@samsung.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
1 parent ff3f449 commit a394c3f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • drivers/media/platform/samsung/s5p-mfc

drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,8 @@ static void s5p_mfc_handle_init_buffers(struct s5p_mfc_ctx *ctx,
604604
s5p_mfc_clock_off();
605605

606606
wake_up(&ctx->queue);
607+
if (ctx->src_queue_cnt >= 1 && ctx->dst_queue_cnt >= 1)
608+
set_work_bit_irqsave(ctx);
607609
s5p_mfc_hw_call(dev->mfc_ops, try_run, dev);
608610
} else {
609611
WARN_ON(test_and_clear_bit(0, &dev->hw_lock) == 0);

0 commit comments

Comments
 (0)