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

Commit 88d0be3d authored by Praneeth Paladugu's avatar Praneeth Paladugu
Browse files

msm: vidc: Scale clocks with perf level change



When client calls perf level change, driver needs to
make sure that it scales clocks to make the perf level
change effect immediately.

Change-Id: I6510bf14ea28ac09513610a4e7f31446ca499ec0
Signed-off-by: default avatarPraneeth Paladugu <ppaladug@codeaurora.org>
parent 6cb8923f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2286,6 +2286,8 @@ static int try_set_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
		__temp; \
	})

	v4l2_ctrl_unlock(ctrl);

	switch (ctrl->id) {
	case V4L2_CID_MPEG_VIDC_VIDEO_STREAM_FORMAT:
		property_id = HAL_PARAM_NAL_STREAM_FORMAT_SELECT;
@@ -2372,7 +2374,7 @@ static int try_set_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
			rc = -ENOTSUPP;
			break;
		}

		msm_comm_scale_clocks_and_bus(inst);
		break;
	case V4L2_CID_MPEG_VIDC_VIDEO_ALLOC_MODE_INPUT:
		if (ctrl->val == V4L2_MPEG_VIDC_VIDEO_DYNAMIC) {
@@ -2568,6 +2570,8 @@ static int try_set_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
	default:
		break;
	}

	v4l2_ctrl_lock(ctrl);
#undef TRY_GET_CTRL

	if (!rc && property_id) {