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 pelwell committed Nov 22, 2024
1 parent f4a3500 commit 521f2ba
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 521f2ba

Please sign in to comment.