Skip to content

Commit

Permalink
drm/connector: hdmi: Attempt YUV422 output if RGB isn't supported
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
6by9 authored and popcornmix committed Nov 25, 2024
1 parent 7eea83b commit fcadf63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/gpu/drm/display/drm_hdmi_state_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ hdmi_compute_format(const struct drm_connector *connector,
return 0;
}

if (hdmi_try_format_bpc(connector, conn_state, mode, bpc, HDMI_COLORSPACE_YUV422)) {
conn_state->hdmi.output_format = HDMI_COLORSPACE_YUV422;
return 0;
}

drm_dbg_kms(dev, "Failed. No Format Supported for that bpc count.\n");

return -EINVAL;
Expand Down

0 comments on commit fcadf63

Please sign in to comment.