Skip to content

Commit

Permalink
HACK: media: qcom: venus: avoid setting HEADER_MODE_SEPARATE
Browse files Browse the repository at this point in the history
Using HEADER_MODE_SEPARATE causes output to be invalid.
  • Loading branch information
vldly authored and barni2000 committed Jul 25, 2024
1 parent bfe0820 commit ec4db89
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/media/platform/qcom/venus/venc.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,10 @@ static int venc_set_properties(struct venus_inst *inst)
else
en.enable = 1;

/* Seems to be broken */
if (IS_V3(inst->core) && is_fw_rev_or_older(inst->core, 4, 4, 60))
en.enable = 1;

ret = hfi_session_set_property(inst, ptype, &en);
if (ret)
return ret;
Expand Down
5 changes: 5 additions & 0 deletions drivers/media/platform/qcom/venus/venc_ctrls.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ static int venc_op_s_ctrl(struct v4l2_ctrl *ctrl)
en.enable = 0;
else
en.enable = 1;

/* Seems to be broken */
if (IS_V3(inst->core) && is_fw_rev_or_older(inst->core, 4, 4, 60))
en.enable = 1;

ptype = HFI_PROPERTY_CONFIG_VENC_SYNC_FRAME_SEQUENCE_HEADER;
ret = hfi_session_set_property(inst, ptype, &en);
if (ret) {
Expand Down

0 comments on commit ec4db89

Please sign in to comment.