media: venus: helpers: keep max bandwidth when mbps exceeds the supported range
When the video usecase have macro blocks per sec which is more than supported, keep the required bus bandwidth as the maximum supported. Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org> Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
bcf6b264a8
commit
7bf28a2153
1 changed files with 1 additions and 1 deletions
|
|
@ -201,7 +201,7 @@ static void mbs_to_bw(struct venus_inst *inst, u32 mbs, u32 *avg, u32 *peak)
|
|||
return;
|
||||
|
||||
for (i = 0; i < num_rows; i++) {
|
||||
if (mbs > bw_tbl[i].mbs_per_sec)
|
||||
if (i != 0 && mbs > bw_tbl[i].mbs_per_sec)
|
||||
break;
|
||||
|
||||
if (inst->dpb_fmt & HFI_COLOR_FORMAT_10_BIT_BASE) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue