drm_dp_mst_a...c_enable_dsc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_dp_mst_atomic_enable_dsc(9) πŸ’…

okay so this is from the Kernel API Manual bestie, and it's genuinely one of those little functions that does exactly what the name says β€” no lore, no plot twist. It's drm_dp_mst_atomic_enable_dsc, and it flips the DSC switch on a port. On or off. That's the whole vibe. ✨


🌸 NAME 🌸

drm_dp_mst_atomic_enable_dsc β€” Set DSC Enable Flag to On/Off πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int drm_dp_mst_atomic_enable_dsc (struct drm_atomic_commit *state ,
struct drm_dp_mst_port *port , int pbn , bool enable );

πŸ’– ARGUMENTS πŸ’–

  • state β€” Pointer to the new drm_atomic_commit. like, the fresh commit bestie, the one you're building rn πŸ’…
  • port β€” Pointer to the affected MST Port. this is the port in question, the main character of the operation πŸ‘‘
  • pbn β€” Newly recalculated bw required for link with DSC enabled. yes it's the newly recalculated bandwidth, don't just pass vibes, pass the actual number 😭
  • enable β€” Boolean flag to enable or disable DSC on the port. true = on, false = off, no in-between, no situationships 🫢

⭐ DESCRIPTION ⭐

so what this does: it enables DSC on the given Port by recalculating its vcpi from the pbn you provided, and then it sets the dsc_enable flag to keep track of which ports have DSC enabled. 🧚

like literally that's it. recalc the vcpi from pbn, flip the bookkeeping flag, know which ports are DSC-girlies and which aren't. lowkey iconic how tidy it is. πŸ“

reminder bestie: the pbn is the newly recalculated bandwidth for the link with DSC enabled β€” so it's on you to have done that math before you call this. no cap. πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/gpu/drm/display/drm_dp_mst_topology.c, plus the whole friend group:


that's the whole page bestie, go read the source if you want more lore πŸ’œ

πŸŽ€ sign-off time: this one lives in ./drivers/gpu/drm/display, dated October 2026, and it's filed under drm_dp_mst_a...c_enable_dsc(9) β€” mwah, slay, periodt βœ¨πŸ’…
πŸ“¦ where this page comes from