drm_hdmi_acr_get_n_cts(9)
π 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_nandout_ctsare pointers you pass in, and the function writes into them. that's how you get your data back out, since the return type isvoid. π
π 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 π
- Kernel file
./drivers/gpu/drm/display/drm_hdmi_helper.cβ that's where the magic lives π§ drm_hdmi_infoframe_set_hdr_metadata(9)drm_hdmi_avi_infoframe_colorimetry(9)drm_hdmi_avi_infoframe_bars(9)drm_hdmi_avi_infoframe_content_type(9)drm_hdmi_compute_mode_clock(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms