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

Commit 8797296a authored by Dikshita Agarwal's avatar Dikshita Agarwal
Browse files

msm-vidc: update core ops for AR50LT bus calculation



Update core ops to invoke calc_bw_ar50lt API to
calculate bus bw requirement for ar50lt.

Change-Id: I1c8e1766d9aa2f8ad44498587b171c2827759ddb
Signed-off-by: default avatarDikshita Agarwal <dikshita@codeaurora.org>
parent 80799b1b
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -6,11 +6,6 @@
#include "msm_vidc_bus.h"
#include "msm_vidc_internal.h"

static unsigned long __calculate_vpe(struct vidc_bus_vote_data *d)
{
	return 0;
}

static unsigned long __calculate_encoder(struct vidc_bus_vote_data *d)
{
	/* Encoder Parameters */
@@ -274,9 +269,6 @@ static unsigned long __calculate(struct vidc_bus_vote_data *d)
	unsigned long value = 0;

	switch (d->domain) {
	case HAL_VIDEO_DOMAIN_VPE:
		value = __calculate_vpe(d);
		break;
	case HAL_VIDEO_DOMAIN_ENCODER:
		value = __calculate_encoder(d);
		break;
+11 −1
Original line number Diff line number Diff line
@@ -32,6 +32,14 @@ struct msm_vidc_core_ops core_ops_ar50 = {
	.calc_bw = NULL,
};

struct msm_vidc_core_ops core_ops_ar50lt = {
	.calc_freq = msm_vidc_calc_freq_ar50,
	.decide_work_route = NULL,
	.decide_work_mode = msm_vidc_decide_work_mode_ar50,
	.decide_core_and_power_mode = NULL,
	.calc_bw = calc_bw_ar50lt,
};

struct msm_vidc_core_ops core_ops_iris1 = {
	.calc_freq = msm_vidc_calc_freq_iris1,
	.decide_work_route = msm_vidc_decide_work_route_iris1,
@@ -1701,8 +1709,10 @@ void msm_vidc_init_core_clk_ops(struct msm_vidc_core *core)

	vpu = core->platform_data->vpu_ver;

	if (vpu == VPU_VERSION_AR50 || vpu == VPU_VERSION_AR50_LITE)
	if (vpu == VPU_VERSION_AR50)
		core->core_ops = &core_ops_ar50;
	else if (vpu == VPU_VERSION_AR50_LITE)
		core->core_ops = &core_ops_ar50lt;
	else if (vpu == VPU_VERSION_IRIS1)
		core->core_ops = &core_ops_iris1;
	else