diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-01-11 14:57:23 +0200 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2019-03-08 08:49:30 +0800 |
commit | 6255a9fe86e08dc0760cb824875f2dae728428e7 (patch) | |
tree | 4b9f731a09557f5e81e7fd145e80abc01ae28dfd /include | |
parent | 738f34027fed1298d2ccf8aab25c6ac92a19a310 (diff) |
UPSTREAM: 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>
(cherry picked from commit a2ce26f815b16500d390fc46381ec770192a5fbe)
Change-Id: Ic41983b3298461644658d89c31408b06efc33c69
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drm_edid.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h index 6989b1a44f08..50a8e4d04aeb 100644 --- a/include/drm/drm_edid.h +++ b/include/drm/drm_edid.h @@ -346,6 +346,10 @@ drm_hdmi_avi_infoframe_from_display_mode(struct hdmi_avi_infoframe *frame, int drm_hdmi_vendor_infoframe_from_display_mode(struct hdmi_vendor_infoframe *frame, const struct drm_display_mode *mode); +void +drm_hdmi_avi_infoframe_quant_range(struct hdmi_avi_infoframe *frame, + enum hdmi_quantization_range rgb_quant_range, + bool rgb_quant_range_selectable); /** * drm_eld_mnl - Get ELD monitor name length in bytes. |