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:
Li Huang
2022-03-29 14:42:14 +08:00
committed by Tao Huang
parent bac6b534b7
commit 65d129a414
2 changed files with 5 additions and 4 deletions

View File

@@ -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))

View File

@@ -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");