drm_scdc_set..._clock_ratio(9)
π drm_scdc_set_high_tmds_clock_ratio(9) β from the Kernel API Manual, bestie π
okay so picture this: you're deep in the kernel, specifically the DRM/SCDC corner of it, and you need to flip the TMDS clock ratio around. that's literally this whole function. welcome to the group chat π
β¨ NAME β¨
drm_scdc_set_high_tmds_clock_ratio β bestie, it sets the TMDS clock ratio. that's the whole vibe check π¦
πΈ SYNOPSIS πΈ
bool drm_scdc_set_high_tmds_clock_ratio (struct drm_connector *connector
, bool set );
π ARGUMENTS π
connectorβ the connector. yep. that's it. that's the connector. she's just a connector π«Άsetβ ret or reset the high clock ratio. it's giving "on or off" energy, no further notes π
π₯ DESCRIPTION π₯
okay so the TMDS clock ratio math is actually kind of iconic once you see it laid out, so let's go, no cap:
- TMDS character =
10 bitTMDS encoded value - TMDS character rate = the rate at which TMDS characters are transmitted (
Mcsc) - TMDS bit rate =
10xthe TMDS character rate
and as per the spec (in case you were wondering, and you were wondering):
- TMDS clock rate for pixel clock
< 340 MHz=1xthe character rate =1/10pixel clock rate - TMDS clock rate for pixel clock
> 340 MHz=0.25xthe character rate =1/40pixel clock rate
so what does the function actually do? she writes to the TMDS config register over the SCDC channel, and then:
- sets the TMDS clock ratio to
1/40whenset = 1 - sets the TMDS clock ratio to
1/10whenset = 0
that's the tea. the whole thing. go off π
β RETURN β
True if the write is successful, false otherwise. literally just vibes: did it work or not π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/display/drm_scdc_helper.c scdc helpers(9)drm_scdc_read(9)drm_scdc_write(9)drm_scdc_get_scrambling_status(9)drm_scdc_set_scrambling(9)
and that's the whole page, bestie π this little gem lives in ./drivers/gpu/drm/display, and it was dated October 2026 β so go forth and set those clock ratios, mwah ππ§β¨
π¦ 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