mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
video: rockchip: mpp: fix offset be added repeatedly issue
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com> Change-Id: I30db16b843f29c9d07ec3aec0eb99406eca147ed
This commit is contained in:
@@ -724,7 +724,6 @@ static int rkvdec_process_reg_fd(struct mpp_session *session,
|
||||
fd = task->reg[idx] & 0x3ff;
|
||||
offset = task->reg[idx] >> 10 << 4;
|
||||
}
|
||||
offset += mpp_query_reg_offset_info(&task->off_inf, idx);
|
||||
mem_region = mpp_task_attach_fd(&task->mpp_task, fd);
|
||||
if (IS_ERR(mem_region))
|
||||
return -EFAULT;
|
||||
|
||||
@@ -262,7 +262,6 @@ static int vdpu_process_reg_fd(struct mpp_session *session,
|
||||
fd = task->reg[idx] & 0x3ff;
|
||||
offset = task->reg[idx] >> 10 << 4;
|
||||
}
|
||||
offset += mpp_query_reg_offset_info(&task->off_inf, idx);
|
||||
mem_region = mpp_task_attach_fd(&task->mpp_task, fd);
|
||||
if (IS_ERR(mem_region))
|
||||
goto fail;
|
||||
|
||||
@@ -222,7 +222,6 @@ static int vdpu_process_reg_fd(struct mpp_session *session,
|
||||
fd = task->reg[idx] & 0x3ff;
|
||||
offset = task->reg[idx] >> 10 << 4;
|
||||
}
|
||||
offset += mpp_query_reg_offset_info(&task->off_inf, idx);
|
||||
mem_region = mpp_task_attach_fd(&task->mpp_task, fd);
|
||||
if (IS_ERR(mem_region))
|
||||
return -EFAULT;
|
||||
|
||||
Reference in New Issue
Block a user