Skip to content

Commit

Permalink
Merge pull request #435 from ligenxxxx/detect-hdmi-in-fps-by-CEA861-D
Browse files Browse the repository at this point in the history
detect hdmi in fps by CEA-861-D
  • Loading branch information
ligenxxxx authored Sep 3, 2024
2 parents 9da68d9 + e50c233 commit 8e6c654
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/driver/it66021.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,13 @@ int IT66021_Get_VTMG(int *freq_ref) {
fps = 6831.0 / r9a[1];
fps = fps * 1000000 / hmax / vmax;

IT66021_Mask_WR(0, 0x0f, 0x03, 0x02);
r9c = I2C_L_Read(ADDR_IT66021, 0x18);
if (r9c == 16 || r9c == 4)
fps = 60;
else if (r9c == 19 || r9c == 31)
fps = 50;

if (hact == 1920 && vact == 1080) {
if (fps < 45 || fps >= 70)
ret = HDMIIN_VTMG_1080Pother;
Expand Down

0 comments on commit 8e6c654

Please sign in to comment.