diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-01-11 16:18:35 +0200 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2019-03-08 08:49:30 +0800 |
commit | 738f34027fed1298d2ccf8aab25c6ac92a19a310 (patch) | |
tree | aed79859e667289c8a32ee7d646241831fcadb28 /include | |
parent | 6ff461709c7bc09c526203834357b3114d8ea53c (diff) |
UPSTREAM: drm/edid: Introduce drm_default_rgb_quant_range()
Make the code selecting the RGB quantization range a little less magicy
by wrapping it up in a small helper.
v2: s/adjusted_mode/mode in vc4 to make it actually compile
v3: Add a comment proposed by Eric
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170111141835.25369-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit c8127cf08ab9797c3954df463741ac47039d2b55)
Change-Id: I33894c6e3a2033b168f78918e4a8dbf167201632
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drm_edid.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h index 85861b63e77a..6989b1a44f08 100644 --- a/include/drm/drm_edid.h +++ b/include/drm/drm_edid.h @@ -421,5 +421,7 @@ struct edid *drm_do_get_edid(struct drm_connector *connector, int (*get_edid_block)(void *data, u8 *buf, unsigned int block, size_t len), void *data); +enum hdmi_quantization_range +drm_default_rgb_quant_range(const struct drm_display_mode *mode); #endif /* __DRM_EDID_H__ */ |