drm_default_rgb_quant_range(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_default_rgb_quant_range ✨

Ok bestie, so this one's from the Kernel API Manual β€” it's drm_default_rgb_quant_range(9), and no cap, the name literally tells you what it does: it hands you the default RGB quantization range. Let's get into it πŸ’…


🌸 SYNOPSIS 🌸

enum hdmi_quantization_range drm_default_rgb_quant_range (const struct
drm_display_mode *mode );

That's the whole signature, queen β€” it takes one thing and it gives you back an enum hdmi_quantization_range. Simple, clean, iconic. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • mode β€” the display mode. That's it, that's the whole input. Just the mode, bestie πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

So like, what does it actually do? It figures out the default RGB quantization range for the mode β€” as specified in CEA-861. That's the spec, that's the source of truth, we don't make this stuff up fr fr πŸ“Ίβœ¨

Think of it as the function that looks at your display mode and goes "okay, here's the default quant range the standard says you get." Vibes: very chill, very by-the-book, lowkey doing exactly what CEA-861 told it to. πŸ’€


πŸ”₯ RETURN πŸ”₯

It returns the default RGB quantization range for the mode. That's the whole plot, no twist ending 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

This section is long, bestie β€” buckle up, we're going on a tour of the EDID-verse 🌈 The kernel file lives at ./drivers/gpu/drm/drm_edid.c and here's everybody in the family:

Like I said. A lot. Obsessed with the commitment honestly 🧚


Ngl bestie, if you're poking around in ./drivers/gpu/drm, this whole list is your new friend group πŸ’œ

Anyway that's the page! It lives over in ./drivers/gpu/drm, dated October 2026, and this little love letter was brought to you by drm_default_rgb_quant_range(9) β€” slay, periodt, see you in the source πŸŒŸπŸŽ€πŸ’–

πŸ“¦ where this page comes from