media: scaler: add job scheduling in buf_queue
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Tue, 26 Jun 2018 11:43:53 +0000 (20:43 +0900)
committerJanghyuck Kim <janghyuck.kim@samsung.com>
Mon, 23 Jul 2018 05:39:46 +0000 (14:39 +0900)
buf_queue callback will be called when fence is signaled.
At that time, job should be tried to run because this buffer
queueing might satisfy the condition to work. Job would be never
triggered without this scheduling.

Change-Id: Iba5a25b1280e60b35f431266d289f1d5b2af5fdb
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
drivers/media/platform/exynos/scaler/scaler-core.c

index 1fc2649bcb4f2c498040230b2239ae9593da488a..5164129b0dc8a5fcdf42e25c50138fa9eac35410 100644 (file)
@@ -1878,6 +1878,7 @@ static void sc_vb2_buf_queue(struct vb2_buffer *vb)
        struct vb2_v4l2_buffer *v4l2_buf = to_vb2_v4l2_buffer(vb);
 
        v4l2_m2m_buf_queue(ctx->m2m_ctx, v4l2_buf);
+       v4l2_m2m_try_schedule(ctx->m2m_ctx);
 }
 
 static void sc_vb2_buf_cleanup(struct vb2_buffer *vb)