diff options
author | Dave Airlie <airlied@redhat.com> | 2013-02-23 21:39:42 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-02-23 21:39:42 -0500 |
commit | 28ee46184fc64591e286fa0355845e09c39e2a84 (patch) | |
tree | 97f6cb0411cf45f173586275b53c1cfe457a587b /drivers/gpu/drm/i915/intel_hdmi.c | |
parent | a497bfe9dbbc0fbacd61295986372a626e73f452 (diff) | |
parent | e3b2e0347e3b3b81cc322b413abf98a349d275df (diff) |
Merge branch 'drm/hdmi-for-3.9' of git://anongit.freedesktop.org/tegra/linux into drm-next
Thierry writes:
"Remove a duplicate implementation of the CEA VIC lookup and move the CEA
and other mode tables to drm_edid.c to make it more difficult to create
duplicates of the tables.
Add some helpers to pack CEA-861/HDMI AVI, audio and SPD infoframes into
binary buffers that can easily be written into hardware registers. A new
helper function makes it easy construct an AVI infoframe from a DRM
display mode.
Convert the Tegra and Radeon drivers to use the new HDMI helpers."
* 'drm/hdmi-for-3.9' of git://anongit.freedesktop.org/tegra/linux:
drm/radeon: Use generic HDMI infoframe helpers
drm/tegra: Use generic HDMI infoframe helpers
drm: Add EDID helper documentation
drm: Add HDMI infoframe helpers
video: Add generic HDMI infoframe helpers
drm: Add some missing forward declarations
drm: Move mode tables to drm_edid.c
drm: Remove duplicate drm_mode_cea_vic()
Diffstat (limited to 'drivers/gpu/drm/i915/intel_hdmi.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_hdmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index 83d66602414b..fa8ec4a26041 100644 --- a/drivers/gpu/drm/i915/intel_hdmi.c +++ b/drivers/gpu/drm/i915/intel_hdmi.c | |||
@@ -348,7 +348,7 @@ static void intel_hdmi_set_avi_infoframe(struct drm_encoder *encoder, | |||
348 | avi_if.body.avi.ITC_EC_Q_SC |= DIP_AVI_RGB_QUANT_RANGE_FULL; | 348 | avi_if.body.avi.ITC_EC_Q_SC |= DIP_AVI_RGB_QUANT_RANGE_FULL; |
349 | } | 349 | } |
350 | 350 | ||
351 | avi_if.body.avi.VIC = drm_mode_cea_vic(adjusted_mode); | 351 | avi_if.body.avi.VIC = drm_match_cea_mode(adjusted_mode); |
352 | 352 | ||
353 | intel_set_infoframe(encoder, &avi_if); | 353 | intel_set_infoframe(encoder, &avi_if); |
354 | } | 354 | } |
@@ -781,7 +781,7 @@ bool intel_hdmi_mode_fixup(struct drm_encoder *encoder, | |||
781 | if (intel_hdmi->color_range_auto) { | 781 | if (intel_hdmi->color_range_auto) { |
782 | /* See CEA-861-E - 5.1 Default Encoding Parameters */ | 782 | /* See CEA-861-E - 5.1 Default Encoding Parameters */ |
783 | if (intel_hdmi->has_hdmi_sink && | 783 | if (intel_hdmi->has_hdmi_sink && |
784 | drm_mode_cea_vic(adjusted_mode) > 1) | 784 | drm_match_cea_mode(adjusted_mode) > 1) |
785 | intel_hdmi->color_range = SDVO_COLOR_RANGE_16_235; | 785 | intel_hdmi->color_range = SDVO_COLOR_RANGE_16_235; |
786 | else | 786 | else |
787 | intel_hdmi->color_range = 0; | 787 | intel_hdmi->color_range = 0; |