Skip to content
Commit 20faf5c1 authored by popcornmix's avatar popcornmix
Browse files

vc4_hdmi_phy: Fix offset calculation



The original firmware code worked with float and did
   offset = ((vco_freq / fref * 2) * (1 << 22));
   offset >>= 2;

In this code it's all integer so doing the integer divide before the shift loses lots of precision

This fixes the issue of 1080p59.94 mode having 59.64 fps

Signed-off-by: default avatarpopcornmix <popcornmix@gmail.com>
parent 1653eecc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment