summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnand Abhishek <quic_anandabh@quicinc.com>2022-09-06 17:29:05 +0530
committerAnand Abhishek <quic_anandabh@quicinc.com>2022-09-06 17:29:05 +0530
commit97a944da4cef072c15b63d5d5dac0cecbcb92381 (patch)
tree0f2177c7f8a47b22b2d12c794737518671caff40
parent4e1052e87a79791f8d263ba152cfe5c9158313f0 (diff)
downloadvideo-driver-97a944da4cef072c15b63d5d5dac0cecbcb92381.tar.gz
msm: vidc: Enable intra cyclic refresh
Refresh rate is hardcoded to random. This change allows to set user configured refresh rate. Change-Id: I572a400551b59105c221b77f6028cb9d9d1652b8 Signed-off-by: Anand Abhishek <quic_anandabh@quicinc.com>
-rw-r--r--msm/vidc/msm_venc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/msm/vidc/msm_venc.c b/msm/vidc/msm_venc.c
index 02c924a..5fc5bc6 100644
--- a/msm/vidc/msm_venc.c
+++ b/msm/vidc/msm_venc.c
@@ -3277,7 +3277,6 @@ int msm_venc_set_intra_refresh_mode(struct msm_vidc_inst *inst)
inst->rc_type == V4L2_MPEG_VIDEO_BITRATE_MODE_CBR))
return 0;
- /* Firmware supports only random mode */
intra_refresh.mode = HFI_INTRA_REFRESH_RANDOM;
ctrl = get_ctrl(inst, V4L2_CID_MPEG_VIDC_VIDEO_INTRA_REFRESH_RANDOM);
@@ -3296,6 +3295,7 @@ int msm_venc_set_intra_refresh_mode(struct msm_vidc_inst *inst)
} else {
ctrl = get_ctrl(inst,
V4L2_CID_MPEG_VIDEO_CYCLIC_INTRA_REFRESH_MB);
+ intra_refresh.mode = HFI_INTRA_REFRESH_CYCLIC;
intra_refresh.mbs = ctrl->val;
}
if (!intra_refresh.mbs) {