msm: vidc: fix ctrl limits update for MENU type

When update limits for MENU type controls, should keep
original menu_skip_mask, shouldn't replace it with step_size.

Change-Id: I9706f139fd299f7ca931d812e1a95017606a2267
Signed-off-by: Qiwei Liu <qiweil@codeaurora.org>
This commit is contained in:
Qiwei Liu 2020-11-03 23:27:52 +08:00 committed by Gerrit - the friendly Code Review server
parent af73385543
commit 92828b48ee

View File

@ -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) {