drm_hdmi_acr_get_n_cts(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_hdmi_acr_get_n_cts(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so this is a page from the Kernel API Manual, and it's about drm_hdmi_acr_get_n_cts β€” a little function that pulls the N and CTS values for Audio Clock Regeneration, and honestly? it's giving unsung hero energy. ✨


🌸 NAME 🌸

drm_hdmi_acr_get_n_cts β€” get N and CTS values for Audio Clock Regeneration πŸ’–


✨ SYNOPSIS ✨

void drm_hdmi_acr_get_n_cts (unsigned long long tmds_char_rate ,
       unsigned int sample_rate , unsigned int *out_n , unsigned int *out_cts
);

like, yes, that's the whole signature. no cap, she's void β€” she doesn't return anything, she writes through your pointers. main character behavior tbh 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • tmds_char_rate β€” the TMDS clock (char rate) exactly as it's used by the HDMI connector. yes, unsigned long long, she's a big girl πŸ’…
  • sample_rate β€” the audio sample rate. that's the Fs vibe, more on that below πŸ‘€
  • out_n β€” a pointer where the N value gets written πŸŽ€
  • out_cts β€” a pointer where the CTS value gets written ⭐
lowkey important: out_n and out_cts are pointers you pass in, and the function writes into them. that's how you get your data back out, since the return type is void. πŸ’€

🌈 DESCRIPTION 🌈

so what does she actually do? she gets the N and CTS values β€” either by calculating them, or by returning data straight out of the tables. either way, you get your numbers. obsessed. πŸ”₯

this all follows the HDMI 1.4b Section 7.2 "Audio Sample Clock Capture and Regeneration" β€” so if you wanna fact-check her, that's the homework. πŸ“š

and heads up, bestie: sample_rate corresponds to the Fs value. see sections 7.2.4 – 7.2.6 for how to select Fs for non-L-PCM formats. like, don't just assume β€” go read those sections, iykyk πŸ™ˆ


πŸ’œ SEE ALSO πŸ’œ


and that's the whole page, periodt. πŸ’– this lil slice of the kernel API manual comes from ./drivers/gpu/drm/display, dated October 2026 β€” so go forth, pass your pointers, and slay those N and CTS values. πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from