drm/edid: Introduce drm_hdmi_avi_infoframe_quant_range()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 11 Jan 2017 12:57:23 +0000 (14:57 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 26 Jan 2017 16:37:13 +0000 (18:37 +0200)
commita2ce26f815b16500d390fc46381ec770192a5fbe
treedcc171a7e43b36e1cbbfb3055ef06b14e0f75430
parentc8127cf08ab9797c3954df463741ac47039d2b55
drm/edid: Introduce drm_hdmi_avi_infoframe_quant_range()

Pull the logic to populate the quantization range information
in the AVI infoframe into a small helper. We'll be adding a bit
more logic to it, and having it in a central place seems like a
good idea since it's based on the CEA-861 spec.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170111125725.8086-4-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/drm_edid.c
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.c
include/drm/drm_edid.h