|
@@ -708,7 +708,6 @@ 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;
|
|
|
- u32 ptype;
|
|
|
int ret;
|
|
|
|
|
|
mutex_lock(&inst->lock);
|
|
@@ -738,13 +737,8 @@ static int vdec_start_streaming(struct vb2_queue *q, unsigned int count)
|
|
|
goto deinit_sess;
|
|
|
|
|
|
if (core->res->hfi_version == HFI_VERSION_3XX) {
|
|
|
- struct hfi_buffer_size_actual buf_sz;
|
|
|
-
|
|
|
- ptype = HFI_PROPERTY_PARAM_BUFFER_SIZE_ACTUAL;
|
|
|
- buf_sz.type = HFI_BUFFER_OUTPUT;
|
|
|
- buf_sz.size = inst->output_buf_size;
|
|
|
-
|
|
|
- ret = hfi_session_set_property(inst, ptype, &buf_sz);
|
|
|
+ ret = venus_helper_set_bufsize(inst, inst->output_buf_size,
|
|
|
+ HFI_BUFFER_OUTPUT);
|
|
|
if (ret)
|
|
|
goto deinit_sess;
|
|
|
}
|