Re: [PATCH v5 06/13] drm/connector: Allow drivers to pass list of supported colorspaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday, June 6th, 2023 at 22:26, Harry Wentland <harry.wentland@xxxxxxx> wrote:

> -int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector)
> +int drm_mode_create_hdmi_colorspace_property(struct drm_connector *connector,
> +					     u32 supported_colorspaces)
>  {
> -	return drm_mode_create_colorspace_property(connector, hdmi_colorspaces);
> +	u32 colorspaces = supported_colorspaces & hdmi_colorspaces;

This creates a potentially weird situation where the driver passes a
non-0 supported_colorspaces, but the intersection with hdmi_colorspaces
ends up being empty, and all colorspaces end up being advertised.




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux