msm: venc: fix the VUI timing info

The timing info should represent the number of time
units in one seconds, as per the timescale and time
units per tick. Update the same while setting the HFI
to video firmware.

Change-Id: Ifb6bc34ad295e472715fb72813a236c851d4480f
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
This commit is contained in:
Vikash Garodia 2020-10-05 23:24:09 +05:30
parent fbff1f488b
commit 48957371a4

View File

@ -4199,7 +4199,7 @@ int msm_venc_set_vui_timing_info(struct msm_vidc_inst *inst)
timing_info.enable = 1;
timing_info.fixed_frame_rate = cfr;
timing_info.time_scale = NSEC_PER_SEC;
timing_info.time_scale = (inst->clk_data.frame_rate >> 16) * USEC_PER_SEC;
s_vpr_h(inst->sid, "%s: %d %d\n", __func__, timing_info.enable,
timing_info.fixed_frame_rate);