aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2010-03-29 17:43:30 -0400
committerDave Airlie <airlied@redhat.com>2010-04-05 20:40:25 -0400
commit7a37435008b0ffea2442eb1134ddd4adeea81e19 (patch)
treecb0f68ab38d1a6572a913857c67e782ca34ad99c /include/drm/drm_crtc.h
parent7ca6adb37918db21d076a489c6c39490fb34264e (diff)
drm/edid: Add secondary GTF curve support
Before CVT-R, some monitors would advertise support for an alternative GTF formula with lower blanking intervals. Correctly identify such monitors, and use the alternative formula when generating modes for them. Note that we only do this for "standard" timing descriptors (tuples of hsize in characters / aspect ratio / vertical refresh). Range-based mode lists still only refer to the primary GTF curve. It would be possible to do better for the latter case, but monitors are required to support the primary curve over the entire advertised range, so all it would win you is a lower pixel clock and therefore possibly better image quality on analog links. Signed-off-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index f74523a299c9..8eb3630ee67d 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -797,6 +797,10 @@ extern struct drm_display_mode *drm_cvt_mode(struct drm_device *dev,
797extern struct drm_display_mode *drm_gtf_mode(struct drm_device *dev, 797extern struct drm_display_mode *drm_gtf_mode(struct drm_device *dev,
798 int hdisplay, int vdisplay, int vrefresh, 798 int hdisplay, int vdisplay, int vrefresh,
799 bool interlaced, int margins); 799 bool interlaced, int margins);
800extern struct drm_display_mode *drm_gtf_mode_complex(struct drm_device *dev,
801 int hdisplay, int vdisplay, int vrefresh,
802 bool interlaced, int margins, int GTF_M,
803 int GTF_2C, int GTF_K, int GTF_2J);
800extern int drm_add_modes_noedid(struct drm_connector *connector, 804extern int drm_add_modes_noedid(struct drm_connector *connector,
801 int hdisplay, int vdisplay); 805 int hdisplay, int vdisplay);
802 806