mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
video: rockchip: rve: Update to 1.0.2
support config ASYNC Signed-off-by: Li Huang <putin.li@rock-chips.com> Change-Id: I762cf8e67dbd9ceaebc3d58120652c8d89f6e92a
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
|
||||
#define DRIVER_MAJOR_VERSION 1
|
||||
#define DRIVER_MINOR_VERSION 0
|
||||
#define DRIVER_REVISION_VERSION 1
|
||||
#define DRIVER_REVISION_VERSION 2
|
||||
|
||||
#define DRIVER_VERSION (STR(DRIVER_MAJOR_VERSION) "." STR(DRIVER_MINOR_VERSION) \
|
||||
"." STR(DRIVER_REVISION_VERSION))
|
||||
|
||||
@@ -712,6 +712,10 @@ int rve_job_commit_by_user_ctx(struct rve_user_ctx_t *user_ctx)
|
||||
ctx->running_job_count = 0;
|
||||
ctx->is_running = true;
|
||||
|
||||
ctx->sync_mode = user_ctx->sync_mode;
|
||||
if (ctx->sync_mode == 0)
|
||||
ctx->sync_mode = RVE_SYNC;
|
||||
|
||||
spin_unlock_irqrestore(&ctx->lock, flags);
|
||||
|
||||
for (i = 0; i < ctx->cmd_num; i++) {
|
||||
@@ -824,9 +828,6 @@ int rve_job_commit(struct rve_internal_ctx_t *ctx)
|
||||
#endif
|
||||
int ret = 0;
|
||||
|
||||
/* TODO: remove */
|
||||
ctx->sync_mode = RVE_SYNC;
|
||||
|
||||
job = rve_job_alloc(ctx);
|
||||
if (!job) {
|
||||
pr_err("failed to alloc rve job!\n");
|
||||
|
||||
Reference in New Issue
Block a user