From 6764eb3ae938b97f7fa9861f256427fcb6b619d2 Mon Sep 17 00:00:00 2001 From: Shijie Qin Date: Thu, 18 Apr 2019 14:29:49 +0800 Subject: [PATCH] MLK-21437-2 VPU Decoder: add new v4l2_s_ctrl for adjust vpu_frm_depth the default value should be vpu_frm_depth when init Signed-off-by: Shijie Qin --- drivers/mxc/vpu_malone/vpu_b0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mxc/vpu_malone/vpu_b0.c b/drivers/mxc/vpu_malone/vpu_b0.c index 09ff672aa711..8b2a3186d932 100644 --- a/drivers/mxc/vpu_malone/vpu_b0.c +++ b/drivers/mxc/vpu_malone/vpu_b0.c @@ -1674,7 +1674,7 @@ static int add_custom_ctrl(struct vpu_ctx *This) cfg.min = -1; cfg.max = 999; cfg.step = 1; - cfg.def = -1; + cfg.def = vpu_frm_depth; cfg.type = V4L2_CTRL_TYPE_INTEGER; ctrl = v4l2_ctrl_new_custom(&This->ctrl_handler, -- 2.17.1