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

Commit ea1efd0b authored by Vikash Garodia's avatar Vikash Garodia
Browse files

msm: vidc: Initialize core ops for bengal VPU version



For bengal, core operations were falling back to default ops
i.e IRIS2 VPU ops. Fix the same by initializing it to bengal
specific VPU.

CRs-Fixed: 2503996
Change-Id: Ie723216494814456f2905bc20b34a98df33f0cda
Signed-off-by: default avatarVikash Garodia <vgarodia@codeaurora.org>
parent 3152012b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1682,12 +1682,16 @@ int msm_vidc_decide_core_and_power_mode_iris2(struct msm_vidc_inst *inst)

void msm_vidc_init_core_clk_ops(struct msm_vidc_core *core)
{
	uint32_t vpu;

	if (!core)
		return;

	if (core->platform_data->vpu_ver == VPU_VERSION_AR50)
	vpu = core->platform_data->vpu_ver;

	if (vpu == VPU_VERSION_AR50 || vpu == VPU_VERSION_AR50_LITE)
		core->core_ops = &core_ops_ar50;
	else if (core->platform_data->vpu_ver == VPU_VERSION_IRIS1)
	else if (vpu == VPU_VERSION_IRIS1)
		core->core_ops = &core_ops_iris1;
	else
		core->core_ops = &core_ops_iris2;
+1 −1
Original line number Diff line number Diff line
@@ -1162,7 +1162,7 @@ static struct msm_vidc_platform_data bengal_data = {
	.efuse_data = NULL,
	.efuse_data_length = 0,
	.sku_version = 0,
	.vpu_ver = VPU_VERSION_AR50_LITE,  // VPU VERSION?
	.vpu_ver = VPU_VERSION_AR50_LITE,
	.ubwc_config = 0x0,
	.codecs = bengal_codecs,
	.codecs_count = ARRAY_SIZE(bengal_codecs),