mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
msm: vidc: update workroute settings for shima
use num_vpp_pipes from platform_data to configure workroute. Change-Id: I5fea0d381402f9877fdb5d0df179bc0857016c56 Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
parent
aa1e0df29b
commit
588b71a376
1 changed files with 3 additions and 2 deletions
|
|
@ -1118,7 +1118,8 @@ int msm_vidc_decide_work_route_iris2(struct msm_vidc_inst *inst)
|
|||
u32 codec;
|
||||
uint32_t vpu;
|
||||
|
||||
if (!inst || !inst->core || !inst->core->device) {
|
||||
if (!inst || !inst->core || !inst->core->device ||
|
||||
!inst->core->platform_data) {
|
||||
d_vpr_e("%s: Invalid args: Inst = %pK\n",
|
||||
__func__, inst);
|
||||
return -EINVAL;
|
||||
|
|
@ -1127,7 +1128,7 @@ int msm_vidc_decide_work_route_iris2(struct msm_vidc_inst *inst)
|
|||
vpu = inst->core->platform_data->vpu_ver;
|
||||
hdev = inst->core->device;
|
||||
is_legacy_cbr = inst->clk_data.is_legacy_cbr;
|
||||
pdata.video_work_route = 4;
|
||||
pdata.video_work_route = inst->core->platform_data->num_vpp_pipes;
|
||||
|
||||
if (vpu == VPU_VERSION_IRIS2_1) {
|
||||
pdata.video_work_route = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue