]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Clean up HDMI deep color handling a bit
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 28 Aug 2019 18:34:24 +0000 (21:34 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 2 Sep 2019 15:43:28 +0000 (18:43 +0300)
commit5c89ca4f7c92aec65dfd337d902326212a3c80bd
tree66467034921e09f6fc761a6f1580b3891603e937
parentbb9a7337acb27ea2de40a5f00448219b7d6ae5b9
drm/i915: Clean up HDMI deep color handling a bit

Reogranize the HDMI deep color state computation to just
loop over possible bpc values. Avoids having to maintain
so many variants of the clock etc.

The current code also looks confused w.r.t. port_clock vs.
bw_constrained. It would happily update port_clock for
deep color but then not actually enable deep color due to
bw_constrained being set. The new logic handles that case
correctly.

v2: Pull stuff into separate funcs (Jani)

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190828183424.7856-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_hdmi.c