Skip to content

Commit d5190a6

Browse files
6by9popcornmix
authored andcommitted
drm/connector: hdmi: Attempt YUV422 output if RGB isn't supported
Drop from RGB to YUV422 output if RGB couldn't be supported within the defined max_bpc and TMDS rates, and then try dropping max_bpc. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 3d22023 commit d5190a6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/display/drm_hdmi_state_helper.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,11 @@ hdmi_compute_config(const struct drm_connector *connector,
653653

654654
ret = hdmi_compute_format_bpc(connector, conn_state, mode, max_bpc,
655655
HDMI_COLORSPACE_RGB);
656+
657+
if (ret)
658+
ret = hdmi_compute_format_bpc(connector, conn_state, mode,
659+
max_bpc, HDMI_COLORSPACE_YUV422);
660+
656661
if (ret) {
657662
if (connector->ycbcr_420_allowed) {
658663
ret = hdmi_compute_format_bpc(connector, conn_state,

0 commit comments

Comments
 (0)