drm_dp_dual_..._tmds_output(9)
π drm_dp_dual_..._tmds_output(9) β like, the Kernel API Manual bestie β¨
okay so welcome to the drm_dp_dual_..._tmds_output(9) page, from your fave Kernel API Manual π no cap, this one's a lil cutie β it's all about peeking at whether some buffers are on or off. let's get into it π
πΈ NAME πΈ
drm_dp_dual_mode_get_tmds_output β literally just gets the state of the TMDS output buffers in the DP dual mode adaptor π¦
β¨ SYNOPSIS β¨
int drm_dp_dual_mode_get_tmds_output (const struct drm_device *dev ,
enum drm_dp_dual_mode_type type , struct i2c_adapter *adapter , bool
*enabled );
π«Ά ARGUMENTS π«Ά
devβ thedrm_deviceyou're working with, bestie πtypeβ which kind of DP dual mode adaptor we're dealing withadapterβ the I2C adapter for the DDC bus, iykyk πenabledβ the current state of the TMDS output buffers (this is the tea we came for β)
π DESCRIPTION π
so the whole vibe of this function is: get the state of the TMDS output buffers in the adaptor. that's it, that's the job π
for type2 adaptors, it queries this from the DP_DUAL_MODE_TMDS_OEN register β like, actually reads it, main character energy π
but for some type 1 adaptors? oh no bestie, they have problems with registers π (check the comments in drm_dp_dual_mode_detect if you wanna know the whole story). so we do not read the register on those. instead we simply assume that the buffers are always enabled. yep, we're just vibing on an assumption, no cap π
π₯ RETURN π₯
0on success, slay π- a negative error code on failure π
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/display/drm_dp_dual_mode_helper.c - dp dual mode helpers(9)
drm_dp_dual_mode_read(9)drm_dp_dual_mode_write(9)drm_dp_dual_mode_detect(9)drm_dp_dual_mode_max_tmds_clock(9)drm_dp_dual_mode_set_tmds_output(9)drm_dp_get_dual_mode_type_name(9)drm_lspcon_get_mode(9)drm_lspcon_set_mode(9)
π reminder bestie: on those type 1 adaptors there's no register read at all β the function just assumes the buffers are always enabled, so don't go expecting real hardware tea from that path π
and that's the whole page!! mwah π this lil legend lives in ./drivers/gpu/drm/display, it's dated October 2026, and it goes by drm_dp_dual_..._tmds_output(9) β periodt πβπ
π¦ 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