drm_default_rgb_quant_range(9)
β¨ 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:
drm_edid_header_is_valid(9)drm_edid_is_valid(9)drm_edid_valid(9)drm_do_probe_ddc_edid(9)drm_edid_override_connector_update(9)drm_edid_raw(9)drm_edid_alloc(9)drm_edid_dup(9)drm_edid_free(9)drm_probe_ddc(9)drm_get_edid(9)drm_edid_read_custom(9)drm_edid_read_ddc(9)drm_edid_read(9)drm_edid_get_product_id(9)drm_edid_print_product_id(9)drm_edid_get_panel_id(9)drm_edid_read_base_block(9)drm_get_edid_switcheroo(9)drm_edid_read_switcheroo(9)drm_edid_duplicate(9)edid_get_quirks(9)drm_match_cea_mode(9)drm_display_mode_from_cea_vic(9)drm_edid_match(9)drm_edid_get_monitor_name(9)drm_edid_to_sad(9)drm_edid_to_speaker_allocation(9)drm_av_sync_delay(9)drm_detect_hdmi_monitor(9)drm_detect_monitor_audio(9)drm_edid_connector_update(9)drm_edid_connector_add_modes(9)drm_connector_update_edid_property(9)drm_add_edid_modes(9)drm_add_modes_noedid(9)drm_hdmi_avi_infoframe_from_display_mode(9)drm_hdmi_avi_infoframe_quant_range(9)drm_hdmi_vendor_infoframe_from_display_mode(9)drm_edid_is_digital(9)
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
- 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