fix[enc_test]: Set input block mode in init kcfg

kernel patch:
270111: fix[mpp_vcodec]: Support input/output block mode

Change-Id: I1fb791872d36f77151db57520add33a5383d6cb6
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
This commit is contained in:
Yanjun Liao
2025-07-30 18:27:55 +08:00
committed by Herman Chen
parent 9abddf0a7b
commit 136e6ae0c4

View File

@@ -254,6 +254,10 @@ static MPP_RET kmpp_cfg_init(MpiEncMultiCtxInfo *info)
mpp_venc_kcfg_set_u32(init_kcfg, "chan_dup", 0);
mpp_venc_kcfg_set_u32(init_kcfg, "tmvp_enable", 0);
mpp_venc_kcfg_set_u32(init_kcfg, "only_smartp", 0);
/* set notify mode to zero to disable rockit ko call back */
mpp_venc_kcfg_set_u32(init_kcfg, "ntfy_mode", 0);
/* set input timeout to block mode to insure put_frame ioctl return while encoding finished */
mpp_venc_kcfg_set_s32(init_kcfg, "input_timeout", MPP_POLL_BLOCK);
ret = p->mpi->control(p->ctx, MPP_SET_VENC_INIT_KCFG, init_kcfg);
if (ret)