drm_cvt_mode — create a modeline based on the CVT algorithm
struct drm_display_mode * drm_cvt_mode ( | struct drm_device * dev, |
int hdisplay, | |
int vdisplay, | |
int vrefresh, | |
bool reduced, | |
bool interlaced, | |
bool margins) ; |
dev
drm device
hdisplay
hdisplay size
vdisplay
vdisplay size
vrefresh
vrefresh rate
reduced
whether to use reduced blanking
interlaced
whether to compute an interlaced mode
margins
whether to add margins (borders)
This function is called to generate the modeline based on CVT algorithm according to the hdisplay, vdisplay, vrefresh. It is based from the VESA(TM) Coordinated Video Timing Generator by Graham Loveridge April 9, 2003 available at