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

Commit 369808c3 authored by Deva Ramasubramanian's avatar Deva Ramasubramanian Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: Scale clocks and buses on V4L2_CID_MPEG_VIDC_SET_PERF_LEVEL



The setting of client desired performance level was only applied when a
significant event (e.g. first frame or port reconfig) took place.  The
performance level should apply immediately if client sets V4L2_CID_MPEG\
_VIDC_SET_PERF_LEVEL.

CRs-Fixed: 695396
Change-Id: I467274a594053dc5872faaef7e114def3f4cb173
Signed-off-by: default avatarDeva Ramasubramanian <dramasub@codeaurora.org>
parent 1318077c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1979,6 +1979,7 @@ static int try_set_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
			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) {
+1 −0
Original line number Diff line number Diff line
@@ -2512,6 +2512,7 @@ static int try_set_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
			break;
		}

		msm_comm_scale_clocks_and_bus(inst);
		break;
	case V4L2_CID_MPEG_VIDC_VIDEO_H264_VUI_BITSTREAM_RESTRICT:
		property_id = HAL_PARAM_VENC_H264_VUI_BITSTREAM_RESTRC;