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

Commit 3fac4607 authored by Chinmay Sawarkar's avatar Chinmay Sawarkar
Browse files

msm: vidc: Remove inversion of video priority ctrl value



Priority control value set by client match the values expected by
firmware. Realtime Enable=1 for both, hence inversion is not
required.

CRs-Fixed: 2225514
Change-Id: I24aff5ea62af4339919655ff6417d1443b232764
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent f0a4ec7d
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1128,10 +1128,7 @@ int msm_vdec_s_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
		break;
	case V4L2_CID_MPEG_VIDC_VIDEO_PRIORITY:
		property_id = HAL_CONFIG_REALTIME;
		/* firmware has inverted values for realtime and
		 * non-realtime priority
		 */
		hal_property.enable = !(ctrl->val);
		hal_property.enable = ctrl->val;
		pdata = &hal_property;
		switch (ctrl->val) {
		case V4L2_MPEG_MSM_VIDC_DISABLE:
+1 −4
Original line number Diff line number Diff line
@@ -1828,10 +1828,7 @@ int msm_venc_s_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
	}
	case V4L2_CID_MPEG_VIDC_VIDEO_PRIORITY:
		property_id = HAL_CONFIG_REALTIME;
		/* firmware has inverted values for realtime and
		 * non-realtime priority
		 */
		enable.enable = !(ctrl->val);
		enable.enable = ctrl->val;
		pdata = &enable;
		switch (ctrl->val) {
		case V4L2_MPEG_MSM_VIDC_DISABLE: