* supported so we can keep things going and light up
* the display.
*/
- if (!(info->color_formats & DRM_COLOR_FORMAT_RGB444))
+ if (!(info->color_formats & BIT(DRM_OUTPUT_COLOR_FORMAT_RGB444)))
drm_warn(dev, "HDMI Sink doesn't support RGB, something's wrong.\n");
if (bpc == 10 && !(info->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_30)) {
case HDMI_COLORSPACE_YUV420:
drm_dbg_kms(dev, "YUV420 format, checking the constraints.\n");
- if (!(info->color_formats & DRM_COLOR_FORMAT_YCBCR420)) {
+ if (!(info->color_formats & BIT(DRM_OUTPUT_COLOR_FORMAT_YCBCR420))) {
drm_dbg_kms(dev, "Sink doesn't support YUV420.\n");
return false;
}
case HDMI_COLORSPACE_YUV422:
drm_dbg_kms(dev, "YUV422 format, checking the constraints.\n");
- if (!(info->color_formats & DRM_COLOR_FORMAT_YCBCR422)) {
+ if (!(info->color_formats & BIT(DRM_OUTPUT_COLOR_FORMAT_YCBCR422))) {
drm_dbg_kms(dev, "Sink doesn't support YUV422.\n");
return false;
}
case HDMI_COLORSPACE_YUV444:
drm_dbg_kms(dev, "YUV444 format, checking the constraints.\n");
- if (!(info->color_formats & DRM_COLOR_FORMAT_YCBCR444)) {
+ if (!(info->color_formats & BIT(DRM_OUTPUT_COLOR_FORMAT_YCBCR444))) {
drm_dbg_kms(dev, "Sink doesn't support YUV444.\n");
return false;
}