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

Commit 98a76012 authored by Chinmay Sawarkar's avatar Chinmay Sawarkar
Browse files

msm: vidc: Session priority control range fix



The correct Min and Max values for Session Priority ctrl are 0 and 1.
Wrong assignment of values resulted in  V4L2 CTRL sanity check failure.

CRs-Fixed: 2199385
Change-Id: I01483ad15fc3f655ab1e482d02a244e1380af25b
Signed-off-by: default avatarChinmay Sawarkar <chinmays@codeaurora.org>
parent 66f22056
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -809,8 +809,8 @@ static struct msm_vidc_ctrl msm_venc_ctrls[] = {
		.id = V4L2_CID_MPEG_VIDC_VIDEO_PRIORITY,
		.name = "Session Priority",
		.type = V4L2_CTRL_TYPE_BOOLEAN,
		.minimum = V4L2_MPEG_MSM_VIDC_ENABLE,
		.maximum = V4L2_MPEG_MSM_VIDC_DISABLE,
		.minimum = V4L2_MPEG_MSM_VIDC_DISABLE,
		.maximum = V4L2_MPEG_MSM_VIDC_ENABLE,
		.default_value = V4L2_MPEG_MSM_VIDC_DISABLE,
		.step = 1,
	},