]> git.baikalelectronics.ru Git - kernel.git/commit
drm/kms: try to find the std mode in DMT table
authorZhao Yakui <yakui.zhao@intel.com>
Thu, 3 Sep 2009 01:33:47 +0000 (09:33 +0800)
committerDave Airlie <airlied@redhat.com>
Mon, 7 Sep 2009 06:04:15 +0000 (16:04 +1000)
commitf93c921d3e2e4224e686a25c9fa96d894aab17aa
tree474be3b0ca2645db1366c03753333b9f5c45a19f
parent6058abf1d5f3c00552b16fd5f4421148dbbd4d28
drm/kms: try to find the std mode in DMT table

When we need to add the standard timing mode, we will firstly check whether it
can be found in DMT table by comparing the hdisplay/vdisplay/vfresh_rate.
If it can't be found, then we will use the cvt/gtf to add the required mode.
If it can be found, it will be returned.

At the same time the function of drm_mode_vrefresh is also fixed. It will
return the result of actual refresh_rate plus 0.5.
For example:
When the calculated value is 84.9, then the fresh_rate is 85.
When the calculated value is 70.02, then the fresh_rate is 70.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c
drivers/gpu/drm/drm_modes.c