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

Commit 588684c5 authored by Ashray Kulkarni's avatar Ashray Kulkarni
Browse files

msm: vidc: fix useltr control in driver



when useltr command is set the control is expected to be a bitwise
operator but driver assumes this to be a integer and then converts
the integer to bitshifted value before sending to firmware. This
change fixes the issue seen earlier.

Change-Id: I48d97cdf0ccb4c834881e01bf0746097293c390a
Signed-off-by: default avatarAshray Kulkarni <ashrayk@codeaurora.org>
parent 2344e053
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2792,7 +2792,7 @@ static int try_set_ctrl(struct msm_vidc_inst *inst, struct v4l2_ctrl *ctrl)
		break;
	case V4L2_CID_MPEG_VIDC_VIDEO_USELTRFRAME:
		property_id = HAL_CONFIG_VENC_USELTRFRAME;
		use_ltr.ref_ltr = (1 << ctrl->val);
		use_ltr.ref_ltr = ctrl->val;
		use_ltr.use_constraint = false;
		use_ltr.frames = 0;
		pdata = &use_ltr;