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

Commit 5e8272e4 authored by Manikanta Kanamarlapudi's avatar Manikanta Kanamarlapudi Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: reject sessions based on max mbpf



Driver need not support sessions if cumulative
mbpf (macroblocks per frame) is more than platform
specified value. So reject such sessions.

CRs-Fixed: 2450395
Change-Id: Iee680fa6addf0bc1d363a69a8a7297f20abb5ee2
Signed-off-by: default avatarManikanta Kanamarlapudi <kmanikan@codeaurora.org>
parent 33a71be9
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -568,6 +568,10 @@ static struct msm_vidc_common_data lito_common_data_v0[] = {
		.key = "qcom,max-b-frame-mbs-per-sec",
		.key = "qcom,max-b-frame-mbs-per-sec",
		.value = 244800,/* ((1920x1088)/256) MBs@30fps */
		.value = 244800,/* ((1920x1088)/256) MBs@30fps */
	},
	},
	{
		.key = "qcom,max-mbpf",
		.value = 65280,/* (3840x2176)/256 + (3840x2176)/256 */
	},
	{
	{
		.key = "qcom,power-collapse-delay",
		.key = "qcom,power-collapse-delay",
		.value = 1500,
		.value = 1500,
@@ -643,6 +647,10 @@ static struct msm_vidc_common_data lito_common_data_v1[] = {
		.key = "qcom,max-b-frame-mbs-per-sec",
		.key = "qcom,max-b-frame-mbs-per-sec",
		.value = 244800,/* ((1920x1088)/256) MBs@30fps */
		.value = 244800,/* ((1920x1088)/256) MBs@30fps */
	},
	},
	{
		.key = "qcom,max-mbpf",
		.value = 40800,	/* (3840x2176)/256 + (1920x1088)/256 */
	},
	{
	{
		.key = "qcom,power-collapse-delay",
		.key = "qcom,power-collapse-delay",
		.value = 1500,
		.value = 1500,