Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48957371 authored by Vikash Garodia's avatar Vikash Garodia
Browse files

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: default avatarVikash Garodia <vgarodia@codeaurora.org>
parent fbff1f48
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);