8e1f4bb68128790addcb6494a6ac86af763869ef
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.15 / 950-0643-drm-vc4-hdmi-Fix-no-video-output-on-DVI-monitors.patch
1 From 64c3b233b38af0817c70d142c65b915ca1fbc71a Mon Sep 17 00:00:00 2001
2 From: Matthias Reichl <hias@horus.com>
3 Date: Thu, 30 Dec 2021 15:12:19 +0100
4 Subject: [PATCH] drm/vc4: hdmi: Fix no video output on DVI monitors
5
6 The drm edid parser doesn't signal RGB support on DVI monitors
7 with old edid versions, leading to 8-bit RGB mode being rejected
8 and no video on DVI monitors.
9
10 As 8-bit RGB is mandatory on HDMI and DVI monitors anyways we can
11 simply drop the RGB format check, aligning vc4 with other drivers.
12
13 Signed-off-by: Matthias Reichl <hias@horus.com>
14 ---
15 drivers/gpu/drm/vc4/vc4_hdmi.c | 3 ---
16 1 file changed, 3 deletions(-)
17
18 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c
19 +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
20 @@ -1415,9 +1415,6 @@ vc4_hdmi_sink_supports_format_bpc(const
21 case VC4_HDMI_OUTPUT_RGB:
22 drm_dbg(dev, "RGB Format, checking the constraints.\n");
23
24 - if (!(info->color_formats & DRM_COLOR_FORMAT_RGB444))
25 - return false;
26 -
27 if (bpc == 10 && !(info->edid_hdmi_rgb444_dc_modes & DRM_EDID_HDMI_DC_30)) {
28 drm_dbg(dev, "10 BPC but sink doesn't support Deep Color 30.\n");
29 return false;