Skip to content

Commit fcadf63

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 <[email protected]>
1 parent 7eea83b commit fcadf63

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

+5
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,11 @@ hdmi_compute_format(const struct drm_connector *connector,
294294
return 0;
295295
}
296296

297+
if (hdmi_try_format_bpc(connector, conn_state, mode, bpc, HDMI_COLORSPACE_YUV422)) {
298+
conn_state->hdmi.output_format = HDMI_COLORSPACE_YUV422;
299+
return 0;
300+
}
301+
297302
drm_dbg_kms(dev, "Failed. No Format Supported for that bpc count.\n");
298303

299304
return -EINVAL;

0 commit comments

Comments
 (0)