msm_dsc_get_bytes_per_line(9)
π msm_dsc_get_bytes_per_line(9) π
okay bestie, welcome to the Kernel API Manual β yes, that Kernel API Manual, the one and only β¨ this page is all about msm_dsc_get_bytes_per_line, and it's literally the glow-up your DSC math has been waiting for π«Ά
πΈ NAME πΈ
msm_dsc_get_bytes_per_line β calculate bytes per line π (that's it, that's the whole job, and she does it flawlessly)
π SYNOPSIS π
u32 msm_dsc_get_bytes_per_line (const struct drm_dsc_config *dsc );
no cap, that's the exact signature β u32 in, u32 out, main character energy only π
π¦ ARGUMENTS π¦
dscβ pointer to thedrm dsc config structπ§ that's your whole vibe check right there: hand her the config, she reads it, she ships you a number.
π RETURN π
An integer value representing bytes per line π« slay.
but listen β this is not the final form, okay? DSI and DP need to perform further calculations to turn this into pclk_per_intf π₯ like, dividing by different values depending on if widebus is enabled. so yeah, this is the appetizer, not the entrΓ©e π don't @ me.
lowkey important: the divide-by value changes with widebus. don't skip that step or the math will not be giving what it's supposed to give π
π SEE ALSO π
Kernel file ./drivers/gpu/drm/msm/msm_dsc_helper.hβ go read the source, iykyk πβ¨
and that's the page, bestie!! this iconic little function lives in the kernel source tree at ./drivers/gpu/drm/msm, dated October 2026 β periodt, go forth and compute your bytes per line π
ππΈ
π¦ 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