MLK-21437-2 VPU Decoder: add new v4l2_s_ctrl for adjust vpu_frm_depth
authorShijie Qin <shijie.qin@nxp.com>
Thu, 18 Apr 2019 06:29:49 +0000 (14:29 +0800)
committerShijie Qin <shijie.qin@nxp.com>
Mon, 22 Apr 2019 09:45:32 +0000 (17:45 +0800)
    the default value should be vpu_frm_depth when init

Signed-off-by: Shijie Qin <shijie.qin@nxp.com>
drivers/mxc/vpu_malone/vpu_b0.c

index 09ff672..8b2a318 100644 (file)
@@ -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,