mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
msm: vidc: Fix core id value
Add definition for decide_core_and_power_mode to fix the core id issue. Wrong core id results in incorrect clock values. CRs-Fixed: 2572953 Change-Id: I2219df71f555fb34a69146821997bab5fa8971a9 Signed-off-by: Manikanta Kanamarlapudi <kmanikan@codeaurora.org>
This commit is contained in:
parent
a88ec175cd
commit
ea096260e8
2 changed files with 9 additions and 1 deletions
|
|
@ -26,7 +26,8 @@ struct msm_vidc_core_ops core_ops_ar50_lt = {
|
|||
.calc_freq = msm_vidc_calc_freq_ar50_lt,
|
||||
.decide_work_route = NULL,
|
||||
.decide_work_mode = msm_vidc_decide_work_mode_ar50_lt,
|
||||
.decide_core_and_power_mode = NULL,
|
||||
.decide_core_and_power_mode =
|
||||
msm_vidc_decide_core_and_power_mode_ar50lt,
|
||||
.calc_bw = NULL,
|
||||
};
|
||||
|
||||
|
|
@ -1274,6 +1275,12 @@ static inline int msm_vidc_power_save_mode_enable(struct msm_vidc_inst *inst,
|
|||
return rc;
|
||||
}
|
||||
|
||||
int msm_vidc_decide_core_and_power_mode_ar50lt(struct msm_vidc_inst *inst)
|
||||
{
|
||||
inst->clk_data.core_id = VIDC_CORE_ID_1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int msm_vidc_decide_core_and_power_mode_iris2(struct msm_vidc_inst *inst)
|
||||
{
|
||||
u32 mbpf, mbps, max_hq_mbpf, max_hq_mbps;
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ int msm_vidc_decide_work_route_iris1(struct msm_vidc_inst *inst);
|
|||
int msm_vidc_decide_work_mode_iris1(struct msm_vidc_inst *inst);
|
||||
int msm_vidc_decide_work_route_iris2(struct msm_vidc_inst *inst);
|
||||
int msm_vidc_decide_work_mode_iris2(struct msm_vidc_inst *inst);
|
||||
int msm_vidc_decide_core_and_power_mode_ar50lt(struct msm_vidc_inst *inst);
|
||||
int msm_vidc_decide_core_and_power_mode_iris1(struct msm_vidc_inst *inst);
|
||||
int msm_vidc_decide_core_and_power_mode_iris2(struct msm_vidc_inst *inst);
|
||||
void msm_print_core_status(struct msm_vidc_core *core, u32 core_id, u32 sid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue