[jpege]: fixup mpp device

The mpp encoder driver won't check the input format, you
have to put all the other registers into zero or it will be
regarded as an DMA buffer.

Change-Id: Idb23de21d01944d72238c041e74ff53842c28e7d
Signed-off-by: Randy Li <randy.li@rock-chips.com>
This commit is contained in:
Randy Li
2017-07-25 14:27:41 +08:00
committed by Herman Chen
parent b7bb1de233
commit 2dfa2bb76d
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ MPP_RET hal_jpege_vepu1_init(void *hal, MppHalCfg *cfg)
ctx->cfg = cfg->cfg;
ctx->set = cfg->set;
ctx->ioctl_info.regs = mpp_malloc(RK_U32, VEPU_JPEGE_VEPU1_NUM_REGS);
ctx->ioctl_info.regs = mpp_calloc(RK_U32, VEPU_JPEGE_VEPU1_NUM_REGS);
if (!ctx->ioctl_info.regs) {
mpp_err_f("failed to malloc vdpu1 regs\n");
return MPP_NOK;

View File

@@ -71,7 +71,7 @@ MPP_RET hal_jpege_vepu2_init(void *hal, MppHalCfg *cfg)
ctx->cfg = cfg->cfg;
ctx->set = cfg->set;
ctx->ioctl_info.regs = mpp_malloc(RK_U32, VEPU_JPEGE_VEPU2_NUM_REGS);
ctx->ioctl_info.regs = mpp_calloc(RK_U32, VEPU_JPEGE_VEPU2_NUM_REGS);
if (!ctx->ioctl_info.regs) {
mpp_err_f("failed to malloc vdpu2 regs\n");
return MPP_NOK;