Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97a944da authored by Anand Abhishek's avatar Anand Abhishek
Browse files

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: default avatarAnand Abhishek <quic_anandabh@quicinc.com>
parent 4e1052e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {