]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.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)
commit1c5dd170927b1aa8e3a01d43d611b840336cdaf2
tree15db224cfc06d552cb667bde503cafd90631fa0b
parent10b98368a0a94b015c1a596b7a02eff447a65226
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