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

Commit 0425f245 authored by Saurabh Kothawade's avatar Saurabh Kothawade
Browse files

msm: vidc: Populate slice size capabilities



Read slice size capabilities for MB and BYTE mode.
Pass those to HAL when requested.

CRs-Fixed: 2052531
Change-Id: Ibf11c7c5999064a8ad31f253b3ebcbcd743e1683
Signed-off-by: default avatarSaurabh Kothawade <skothawa@codeaurora.org>
parent f48b62b7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -171,6 +171,12 @@ int msm_vidc_query_ctrl(void *instance, struct v4l2_queryctrl *ctrl)
	case V4L2_CID_MPEG_VIDC_VIDEO_NUM_B_FRAMES:
		msm_vidc_ctrl_get_range(ctrl, &inst->capability.bframe);
		break;
	case V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_MB:
		msm_vidc_ctrl_get_range(ctrl, &inst->capability.slice_mbs);
		break;
	case V4L2_CID_MPEG_VIDEO_MULTI_SLICE_MAX_BYTES:
		msm_vidc_ctrl_get_range(ctrl, &inst->capability.slice_bytes);
		break;
	default:
		rc = -EINVAL;
	}