]> git.baikalelectronics.ru Git - kernel.git/commit
fbdev: find mode with the highest/safest refresh rate in fb_find_mode()
authorMichal Januszewski <spock@gentoo.org>
Tue, 16 Oct 2007 08:29:19 +0000 (01:29 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:18 +0000 (09:43 -0700)
commit6d31215481e31572d1509dbb0f470d96e7402773
tree15db224cfc06d552cb667bde503cafd90631fa0b
parentfdd224f0795c67697d7cbf6639760a4d69dcd466
fbdev: find mode with the highest/safest refresh rate in fb_find_mode()

Currently, if the refresh rate is not specified, fb_find_mode() returns the
first known video mode with the requested resolution, which provides no
guarantees wrt the refresh rate.  Change this so that the mode with the
highest refresh rate is returned when the driver provides a custom video mode
database and the monitor limits, and a mode with the safe 60 Hz refresh rate
otherwise.

Signed-off-by: Michal Januszewski <spock@gentoo.org>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/modedb.c