static int vdec_set_properties(struct venus_inst *inst)
 {
        struct vdec_controls *ctr = &inst->controls.dec;
+       struct hfi_enable en = { .enable = 1 };
+       u32 ptype;
+       int ret;
+
+       if (ctr->post_loop_deb_mode) {
+               ptype = HFI_PROPERTY_CONFIG_VDEC_POST_LOOP_DEBLOCKER;
+               ret = hfi_session_set_property(inst, ptype, &en);
+               if (ret)
+                       return ret;
+       }
+
+       return 0;
+}
+
+static int vdec_output_conf(struct venus_inst *inst)
+{
        struct venus_core *core = inst->core;
        struct hfi_enable en = { .enable = 1 };
        u32 ptype;
        if (ret)
                return ret;
 
-       if (ctr->post_loop_deb_mode) {
-               ptype = HFI_PROPERTY_CONFIG_VDEC_POST_LOOP_DEBLOCKER;
-               en.enable = 1;
-               ret = hfi_session_set_property(inst, ptype, &en);
-               if (ret)
-                       return ret;
-       }
-
        return 0;
 }
 
 static int vdec_start_streaming(struct vb2_queue *q, unsigned int count)
 {
        struct venus_inst *inst = vb2_get_drv_priv(q);
-       struct venus_core *core = inst->core;
        int ret;
 
        mutex_lock(&inst->lock);
        if (ret)
                goto deinit_sess;
 
-       if (core->res->hfi_version == HFI_VERSION_3XX) {
-               ret = venus_helper_set_bufsize(inst, inst->output_buf_size,
-                                              HFI_BUFFER_OUTPUT);
-               if (ret)
-                       goto deinit_sess;
-       }
+       ret = vdec_output_conf(inst);
+       if (ret)
+               goto deinit_sess;
 
        ret = vdec_verify_conf(inst);
        if (ret)