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

Commit 34fa9710 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: fix ctrl limits update for MENU type"

parents cc97f61b 92828b48
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1345,6 +1345,10 @@ static int msm_vidc_comm_update_ctrl(struct msm_vidc_inst *inst,
		return -EINVAL;
	}

	/* For menu type, keep original menu_skip_mask(step) */
	if (ctrl->type == V4L2_CTRL_TYPE_MENU)
		cap->step_size = (u32)ctrl->step;

	rc = v4l2_ctrl_modify_range(ctrl, cap->min, cap->max,
			cap->step_size, cap->default_value);
	if (rc) {