msm: vidc: Fix priority level determination
Priority level was not determined at few sequences. Determine the priority level and set to firmware, if there is a change in driver and firmware priority. Change-Id: I97861fd4ce8cfb7cf828a8da9a5ce8ba900280ef Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
Esse commit está contido em:
@@ -50,9 +50,14 @@ u64 msm_vidc_calc_freq_iris2(struct msm_vidc_inst *inst, u32 data_size)
|
||||
|
||||
buf_timetamps_fps = msm_vidc_calc_framerate(inst);
|
||||
|
||||
/* use buffer detected fps instead of client set value */
|
||||
if (fps < buf_timetamps_fps)
|
||||
/*
|
||||
* when buffer detected fps is more than client set value by 10%,
|
||||
* utilize buffer detected fps to scale clock.
|
||||
*/
|
||||
if (div_u64(fps * 11, 10) < buf_timetamps_fps) {
|
||||
fps = buf_timetamps_fps;
|
||||
inst->priority_level = MSM_VIDC_PRIORITY_LOW;
|
||||
}
|
||||
|
||||
mbs_per_second = mbpf * fps;
|
||||
|
||||
|
Referência em uma nova issue
Block a user