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

Commit 548cf4ba authored by Fudong Zhang's avatar Fudong Zhang Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: Enable v4l2 for bengal

Enable v4l2 enc/dec for bengal target.

Change-Id: I06411b9cf1a6ae846ec3243bd5e8e8bd9c9189a7
parent 667025ee
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -181,6 +181,9 @@ static struct msm_vidc_codec_capability bengal_capabilities_v0[] = {
	{CAP_SECURE_MBS_PER_FRAME, DOMAINS_ALL, CODECS_ALL, 64, 8160, 1, 8160},
	{CAP_SECURE_BITRATE, DOMAINS_ALL, CODECS_ALL, 1, 35000000, 1, 20000000},

	/* All intra encoding usecase specific */
	{CAP_ALLINTRA_MAX_FPS, ENC, H264|HEVC, 1, 60, 1, 30},

	/* Image specific */
	{CAP_HEVC_IMAGE_FRAME_WIDTH, ENC, HEVC, 128, 512, 2, 512},
	{CAP_HEVC_IMAGE_FRAME_HEIGHT, ENC, HEVC, 128, 512, 2, 512},
@@ -245,6 +248,9 @@ static struct msm_vidc_codec_capability bengal_capabilities_v1[] = {
	{CAP_SECURE_MBS_PER_FRAME, DOMAINS_ALL, CODECS_ALL, 64, 8160, 1, 8160},
	{CAP_SECURE_BITRATE, DOMAINS_ALL, CODECS_ALL, 1, 35000000, 1, 20000000},

	/* All intra encoding usecase specific */
	{CAP_ALLINTRA_MAX_FPS, ENC, H264|HEVC, 1, 60, 1, 30},

	/* Image specific */
	{CAP_HEVC_IMAGE_FRAME_WIDTH, ENC, HEVC, 128, 512, 2, 512},
	{CAP_HEVC_IMAGE_FRAME_HEIGHT, ENC, HEVC, 128, 512, 2, 512},
@@ -1538,6 +1544,10 @@ static struct msm_vidc_common_data bengal_common_data_v0[] = {
		.key = "qcom,max-image-load",
		.value = 262144, /* ((8192x8192)/256)@1fps */
	},
	{
		.key = "qcom,max-mbpf",
		.value = 65280,/* ((3840x2176)/256) x 2 */
	},
	{
		.key = "qcom,max-hq-mbs-per-frame",
		.value = 8160,
@@ -1574,6 +1584,10 @@ static struct msm_vidc_common_data bengal_common_data_v0[] = {
		.key = "qcom,vpp_delay_supported",
		.value = 0,
	},
	{
		.key = "qcom,no-cvp",
		.value = 1,
	},
};

static struct msm_vidc_common_data bengal_common_data_v1[] = {
@@ -1605,6 +1619,10 @@ static struct msm_vidc_common_data bengal_common_data_v1[] = {
		.key = "qcom,max-image-load",
		.value = 262144, /* ((8192x8192)/256)@1fps */
	},
	{
		.key = "qcom,max-mbpf",
		.value = 65280,/* ((3840x2176)/256) x 2 */
	},
	{
		.key = "qcom,max-hq-mbs-per-frame",
		.value = 8160,
@@ -1641,6 +1659,10 @@ static struct msm_vidc_common_data bengal_common_data_v1[] = {
		.key = "qcom,vpp_delay_supported",
		.value = 0,
	},
	{
		.key = "qcom,no-cvp",
		.value = 1,
	},
};

static struct msm_vidc_common_data shima_common_data_v0[] = {