drm_dp_dsc_s...ne_buf_depth(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_dp_dsc_s...ne_buf_depth(9) β€” a Kernel API Manual moment πŸŽ€

okay so bestie, welcome to the Kernel API Manual, and today's main character is drm_dp_dsc_s...ne_buf_depth(9). she's niche, she's specific, and honestly? she ate. ✨


🌸 NAME 🌸

drm_dp_dsc_sink_line_buf_depth β€” get the line buffer depth in bits. that's it, that's the whole job. πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

u8 drm_dp_dsc_sink_line_buf_depth(const u8 dsc_dpcd[DP_DSC_RECEIVER_CAP_SIZE]);

πŸŽ€ ARGUMENTS πŸŽ€

  • dsc_dpcd β€” the DSC capabilities straight from DPCD. this is the lil' info drop she's gonna read, no cap.

✨ DESCRIPTION ✨

so here's the vibe: she reads the DSC DPCD register to parse out the line buffer depth in bits. and what even is that? it's the number of bits of precision within the decoder line buffer supported by the DSC sink β€” like, how much detail the sink's line buffer can actually hold. πŸ”₯

this value is used to populate the DSC parameters in the struct drm_dsc_config by the driver. then the driver creates an infoframe using these parameters to populate struct drm_dsc_pps_infoframe. πŸ“¦ and those get sent to the sink using DSC infoframe using the helper function drm_dsc_pps_infoframe_pack. it's giving pipeline. it's giving teamwork. iykyk. 🫢


⭐ RETURN ⭐

returns the line buffer depth supported by the DSC panel, or 0 if it's invalid. 🫠 (yes, zero is the "nope, something's off" signal, bestie β€” don't ignore it.)


πŸ‘‘ SEE ALSO πŸ‘‘

okay this part is a whole friend group, so buckle up 🧚 β€” she lives in the kernel file ./drivers/gpu/drm/display/drm_dp_helper.c alongside all these icons:


okay that's the whole page, bestie, you're officially educated πŸ’œ this lil' gem lives over in ./drivers/gpu/drm/display and the version on deck is dated October 2026, and the whole thing is filed under drm_dp_dsc_s...ne_buf_depth(9). go forth and read those DPCD registers, queen πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from