mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
media: venus: correct low power frequency calculation for encoder
[ Upstream commitb1f9bb8020] In exististing implimentation, in min_loaded_core() for low_power vpp frequency value is considering as vpp_freq instead of low_power_freq. Fixed this by correcting vpp frequency calculation for encoder. Fixes:3cfe5815ce(media: venus: Enable low power setting for encoder) Signed-off-by: Mansur Alisha Shaik <mansur@codeaurora.org> Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
64bfc56734
commit
e0d8c693a9
@@ -587,8 +587,8 @@ min_loaded_core(struct venus_inst *inst, u32 *min_coreid, u32 *min_load, bool lo
|
||||
if (inst->session_type == VIDC_SESSION_TYPE_DEC)
|
||||
vpp_freq = inst_pos->clk_data.vpp_freq;
|
||||
else if (inst->session_type == VIDC_SESSION_TYPE_ENC)
|
||||
vpp_freq = low_power ? inst_pos->clk_data.vpp_freq :
|
||||
inst_pos->clk_data.low_power_freq;
|
||||
vpp_freq = low_power ? inst_pos->clk_data.low_power_freq :
|
||||
inst_pos->clk_data.vpp_freq;
|
||||
else
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user