mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-26 10:30:20 +08:00
[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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user