From: Shijie Qin Date: Thu, 18 Apr 2019 06:29:49 +0000 (+0800) Subject: MLK-21437-2 VPU Decoder: add new v4l2_s_ctrl for adjust vpu_frm_depth X-Git-Tag: rel_imx_4.19.35_1.1.0~693 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=6764eb3ae938b97f7fa9861f256427fcb6b619d2;p=linux.git 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 --- 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,