drm_gtf_mode_complex — create the modeline based on the full GTF algorithm
struct drm_display_mode * drm_gtf_mode_complex ( | struct drm_device * dev, |
| int hdisplay, | |
| int vdisplay, | |
| int vrefresh, | |
| bool interlaced, | |
| int margins, | |
| int GTF_M, | |
| int GTF_2C, | |
| int GTF_K, | |
int GTF_2J); |
devdrm device
hdisplayhdisplay size
vdisplayvdisplay size
vrefreshvrefresh rate.
interlacedwhether to compute an interlaced mode
marginsdesired margin (borders) size
GTF_Mextended GTF formula parameters
GTF_2Cextended GTF formula parameters
GTF_Kextended GTF formula parameters
GTF_2Jextended GTF formula parameters
GTF feature blocks specify C and J in multiples of 0.5, so we pass them in here multiplied by two. For a C of 40, pass in 80.
The modeline based on the full GTF algorithm stored in a drm_display_mode object.
The display mode object is allocated with drm_mode_create. Returns NULL
when no mode could be allocated.