Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <dave.stevenson@raspberrypi.com>
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
@@ -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;

0 comments on commit 521f2ba

Please sign in to comment.