]> 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)
commit2b8c23474705421d968567592a7c2d87b04edf7b
treee36eb341bc47fe9ce8c94a8470d62e6c5981afc0
parentc661583327bfdbe00812abdab3ddbb0c9f6b6466
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