drm_hdmi_compute_mode_clock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Bestie, welcome to the drm_hdmi_compute_mode_clock(9) page in the Kernel API Manual β€” it's giving HDMI clock math and I'm obsessed ✨


πŸŽ€ NAME πŸŽ€

drm_hdmi_compute_mode_clock - Computes the TMDS Character Rate πŸ’…

✨ SYNOPSIS ✨

The whole signature, no cap:

unsigned long long drm_hdmi_compute_mode_clock (const struct
drm_display_mode *mode , unsigned int bpc , enum drm_output_color_format
fmt );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • mode β€” Display mode to compute the clock for πŸ•°οΈ
  • bpc β€” Bits per character 🌟
  • fmt β€” Output Pixel Format used 🌈

πŸ’– DESCRIPTION πŸ’–

Returns the TMDS Character Rate for a given mode, bpc count and output format. Literally that's the whole vibe: mode + bpc + fmt in, TMDS Character Rate out πŸŽ€

🌸 RETURN 🌸

The TMDS Character Rate, in Hertz, or 0 on error. So if it's not clocking, it's giving 0, bestie 😭

🫢 SEE ALSO 🫢

Kernel file: ./drivers/gpu/drm/display/drm_hdmi_helper.c πŸ“

Also check out these function besties:


Sending hugs from ./drivers/gpu/drm/display, October 2026 β€” bye bestie! πŸ’–

πŸ“¦ where this page comes from