OSDN Git Service

drm/i915/display: Restructure output format computation for better expandability
authorWerner Sembach <wse@tuxedocomputers.com>
Mon, 10 May 2021 13:33:48 +0000 (15:33 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 11 May 2021 14:21:14 +0000 (17:21 +0300)
commit84d95f77f4aea3f22a486cd04777afd4ab0f0ea5
treee36eb341bc47fe9ce8c94a8470d62e6c5981afc0
parenteacba74d4d561ea6487d944417526e1b025cbebd
drm/i915/display: Restructure output format computation for better expandability

Couples the decission between RGB and YCbCr420 mode and the check if the
port clock can archive the required frequency. Other checks and
configuration steps that where previously done in between can also be done
before or after.

This allows for are cleaner implementation of retrying different color
encodings.

A slight change in behaviour occurs with this patch: If YCbCr420 is not
allowed but display is YCbCr420 only it no longer fails, but just prints
an error and tries to fallback on RGB.

Signed-off-by: Werner Sembach <wse@tuxedocomputers.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210510133349.14491-3-wse@tuxedocomputers.com
drivers/gpu/drm/i915/display/intel_hdmi.c