drm/i915: Use drm_hdmi_avi_infoframe_quant_range() for SDVO HDMI as well
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 8 Jan 2019 17:28:26 +0000 (19:28 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 10 Jan 2019 17:01:06 +0000 (19:01 +0200)
commitc3735f5c1f9b01e08d0371fe635762f4a7db5d1c
tree253fd146a5374cc9848311a7b9b9baa04026127c
parent13d0add333afea7b2fef77473232b10dea3627dd
drm/i915: Use drm_hdmi_avi_infoframe_quant_range() for SDVO HDMI as well

Fill out the AVI infoframe quantization range bits using
drm_hdmi_avi_infoframe_quant_range() for SDVO HDMI encoder as well.

This changes the behaviour slightly as
drm_hdmi_avi_infoframe_quant_range() will set a non-zero Q bit
even when QS==0 iff the Q bit matched the default quantization
range for the given mode. This matches the recommendation in
HDMI 2.0 and is allowed even before that.

v2: Pimp commit msg (DK)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190108172828.15184-2-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_sdvo.c