]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Reject HDMI 12bpc if the sink doesn't indicate support
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 13 Feb 2017 17:58:18 +0000 (19:58 +0200)
committerJani Nikula <jani.nikula@intel.com>
Tue, 14 Mar 2017 16:02:39 +0000 (18:02 +0200)
commit5a162056fe3c9e2b935caad3d90885d83846b322
tree243a0da5c1b7575838f038bf26969116f106bcd0
parent8bbfc45d142e69d93357cab2fccf1bf4b363f603
drm/i915: Reject HDMI 12bpc if the sink doesn't indicate support

Check that the sink really declared 12bpc support before we enable it.
This should not actually never happen since it's mandatory for HDMI
sinks to support 12bpc if they support any deep color modes. But
reality disagrees with the theory and there are actually sinks in
the wild that violate the spec.

v2: Fix the output_types check
    Update commit message to state that these things are in fact real

Cc: stable@vger.kernel.org
Cc: Nicholas Sielicki <nicholas.sielicki@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99250
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170213175818.24958-1-ville.syrjala@linux.intel.com
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
(cherry picked from commit c750bdd3e7e204cc88b32806c3864487a03cd84b)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_hdmi.c