|
@@ -597,31 +597,6 @@ static int msm_vdec_set_secure_mode(struct msm_vidc_inst *inst,
|
|
|
return rc;
|
|
|
}
|
|
|
|
|
|
-static int msm_vdec_set_default_header(struct msm_vidc_inst *inst,
|
|
|
- enum msm_vidc_port_type port)
|
|
|
-{
|
|
|
- int rc = 0;
|
|
|
- u32 default_header = false;
|
|
|
-
|
|
|
- if (port != INPUT_PORT) {
|
|
|
- i_vpr_e(inst, "%s: invalid port %d\n", __func__, port);
|
|
|
- return -EINVAL;
|
|
|
- }
|
|
|
-
|
|
|
- default_header = inst->capabilities->cap[DEFAULT_HEADER].value;
|
|
|
- i_vpr_h(inst, "%s: default header: %d", __func__, default_header);
|
|
|
- rc = venus_hfi_session_property(inst,
|
|
|
- HFI_PROP_DEC_DEFAULT_HEADER,
|
|
|
- HFI_HOST_FLAGS_NONE,
|
|
|
- get_hfi_port(inst, port),
|
|
|
- HFI_PAYLOAD_U32,
|
|
|
- &default_header,
|
|
|
- sizeof(u32));
|
|
|
- if (rc)
|
|
|
- i_vpr_e(inst, "%s: set property failed\n", __func__);
|
|
|
- return rc;
|
|
|
-}
|
|
|
-
|
|
|
static int msm_vdec_set_rap_frame(struct msm_vidc_inst *inst,
|
|
|
enum msm_vidc_port_type port)
|
|
|
{
|
|
@@ -773,10 +748,6 @@ static int msm_vdec_set_input_properties(struct msm_vidc_inst *inst)
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
|
|
|
- rc = msm_vdec_set_default_header(inst, INPUT_PORT);
|
|
|
- if (rc)
|
|
|
- return rc;
|
|
|
-
|
|
|
rc = msm_vdec_set_rap_frame(inst, INPUT_PORT);
|
|
|
if (rc)
|
|
|
return rc;
|