msm: vidc: Fix an issue with high bitrate playback
If the instant bitrate during playback is higher than the max supported bitrate, then driver should ensure that venus core is scaled at max frequency. Without this change we will see frame drops if instant bitrate is higher than max supported. CRs-Fixed: 1038427 Change-Id: Id76865085285e2d8b92dba6aa456b972374789ac Signed-off-by: Arun Menon <avmenon@codeaurora.org>
This commit is contained in:
parent
400520a6e2
commit
5bf14d8ab8
1 changed files with 7 additions and 0 deletions
|
@ -1238,6 +1238,13 @@ static unsigned long __get_clock_rate_with_bitrate(struct clock_info *clock,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Current bitrate is higher than max supported load.
|
||||||
|
* Select max frequency to handle this load.
|
||||||
|
*/
|
||||||
|
if (i < 0)
|
||||||
|
supported_clk[j] = table[0].freq;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < data->num_sessions; i++)
|
for (i = 0; i < data->num_sessions; i++)
|
||||||
|
|
Loading…
Add table
Reference in a new issue