drm_mode_validate_ycbcr420(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_mode_validate_ycbcr420(9) β€” from the Kernel API Manual, bestie ✨

okay so picture this: you're deep in drm_modes.c and you've got a mode that's like, YCbCr420 only, and your source is sitting there like "girl I literally cannot" β€” this little helper is the vibe check for exactly that situation 🫢


✨ NAME ✨

drm_mode_validate_ycbcr420 β€” adds 'ycbcr420-only' modes only when they're allowed, no cap πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

enum drm_mode_status drm_mode_validate_ycbcr420 (const struct
drm_display_mode *mode , struct drm_connector *connector );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • mode β€” the mode you're checking, bestie. the one under the microscope πŸ”
  • connector β€” the drm connector under action πŸ’«

🌸 DESCRIPTION 🌸

So this function? it's a helper β€” and honestly it's giving team player energy. you use it to filter out any YCBCR420 only mode whenever the source doesn't support it. like, if the source can't do it, the mode does NOT get to stay. bye πŸ‘‹

it's a filter. that's the whole vibe. iconic, honestly πŸŽ€


⭐ RETURN ⭐

the mode status. that's it, that's the tea β˜•


πŸ”₯ SEE ALSO πŸ”₯

kernel file ./drivers/gpu/drm/drm_modes.c β€” that's home base 🏠

and the whole friend group, fr fr:

drm_mode_debug_printmodeline(9), drm_mode_create(9), drm_mode_destroy(9), drm_mode_probed_add(9), drm_analog_tv_mode(9), drm_cvt_mode(9), drm_gtf_mode_complex(9), drm_gtf_mode(9), drm_display_mode_from_videomode(9), drm_display_mode_to_videomode(9), drm_bus_flags_from_videomode(9), of_get_drm_display_mode(9), of_get_drm_panel_display_mode(9), drm_mode_set_name(9), drm_mode_vrefresh(9), drm_mode_get_hv_timing(9), drm_mode_set_crtcinfo(9), drm_mode_copy(9), drm_mode_init(9), drm_mode_duplicate(9), drm_mode_match(9), drm_mode_equal(9), drm_mode_equal_no_clocks(9), drm_mode_equal_no_clocks_no_stereo(9), drm_mode_validate_driver(9), drm_mode_validate_size(9), drm_mode_prune_invalid(9), drm_mode_compare(9), drm_mode_sort(9), drm_connector_list_update(9), drm_mode_parse_command_line_for_connector(9), drm_mode_create_from_cmdline_mode(9), drm_mode_convert_to_umode(9), drm_mode_convert_umode(9), drm_mode_is_420_only(9), drm_mode_is_420_also(9), drm_mode_is_420(9), drm_set_preferred_mode(9)


okay that's the whole page, you ate that πŸ’– this one lives in ./drivers/gpu/drm, dated October 2026 β€” mwah, go read some modes, bestie πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from