]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdedfd1a74ee854128be98163591af6e6c15ded15
treee36eb341bc47fe9ce8c94a8470d62e6c5981afc0
parent3979f5fcee049f95eef4a442fabacae85b9b8a55
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