drm_lspcon_get_mode(9)
π drm_lspcon_get_mode(9) β the Kernel API Manual glow-up β¨
okay bestie, so this one lives in the Kernel API Manual and it's literally called drm_lspcon_get_mode β and no cap, the whole gig is: Get LSPCON's current mode of operation by reading offset (0x80, 0x41) π
That's it. That's the vibe. We're reading a couple of little register offsets and finding out what headspace your LSPCON is in rn. π¦
β¨ SYNOPSIS β¨
int drm_lspcon_get_mode (const struct drm_device *dev , struct
i2c_adapter *adapter , enum drm_lspcon_mode *mode );
look at her go π three args, one int return, absolutely iconic behaviour.
πΈ ARGUMENTS πΈ
devβ thedrm_deviceto use, aka the main character of this whole operation πadapterβ the I2C-over-aux adapter, the little messenger that carries the gossip π§modeβ output variable for the current lspcon mode of operation; this is where the answer gets dropped off π
β RETURN β
0on success β and when it succeeds it sets thecurrent_modevalue to the appropriate mode π«Ά-erroron failure β yes, negative error, we're in our flop era and the call did not slay π
fr fr: check that return value. 0 = we ate. anything else = we did not eat. π
π¦ SEE ALSO π¦
Kernel file:
./drivers/gpu/drm/display/drm_dp_dual_mode_helper.c
and the whole friend group, lowkey a full group chat:
- 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_get_tmds_output(9)drm_dp_dual_mode_set_tmds_output(9)drm_dp_get_dual_mode_type_name(9)drm_lspcon_set_mode(9)
iykyk π
kisses, this page came from ./drivers/gpu/drm/display and it's dated October 2026 β see u in the next release, 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