summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2017-01-11 14:57:24 +0200
committerTao Huang <huangtao@rock-chips.com>2019-03-08 08:49:30 +0800
commit2b882c1f35d814fb7ef3e74255ba66012223f08f (patch)
treea8c4d6d5f32d158c870de4c10cfde9d3e91f1fc0 /include
parent6255a9fe86e08dc0760cb824875f2dae728428e7 (diff)
UPSTREAM: drm/edid: Set AVI infoframe Q even when QS=0
HDMI 2.0 recommends that we set the Q bits in the AVI infoframe even when the sink does not support quantization range selection (QS=0). According to CEA-861 we can do that as long as the Q we send matches the default quantization range for the mode. Previously I think I had misread the spec as saying that you can't send a non-zero Q at all when QS=0. But that's not what the spec actually says. v2: Fix typo in commit message (Jani) Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170111125725.8086-5-ville.syrjala@linux.intel.com Reviewed-by: Jani Nikula <jani.nikula@intel.com> Acked-by: Eric Anholt <eric@anholt.net> (cherry picked from commit 779c4c2866150c1e5518d703b747f794f91f044c) Change-Id: Ic006e2a2a9ac2f1ab105c595bc4a62c0918c6dff Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_edid.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h
index 50a8e4d04aeb..aecba3b48d1a 100644
--- a/include/drm/drm_edid.h
+++ b/include/drm/drm_edid.h
@@ -348,6 +348,7 @@ 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,
+ const struct drm_display_mode *mode,
enum hdmi_quantization_range rgb_quant_range,
bool rgb_quant_range_selectable);