mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] fbdev modedb: allow refresh rates for named video modes
fbdev modedb: Take into account the specified refresh rates for video modes specified by name, so e.g. all of `720p', `720p@60', and `720p@50' work. Signed-off-by: Geert Uytterhoeven <[email protected]> Cc: James Simmons <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mackerras <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
11227fd192
commit
5c52cbeb7f
1 changed files with 2 additions and 4 deletions
|
|
@ -610,10 +610,8 @@ done:
|
|||
diff = refresh;
|
||||
best = -1;
|
||||
for (i = 0; i < dbsize; i++) {
|
||||
if ((name_matches(db[i], name, namelen) &&
|
||||
!fb_try_mode(var, info, &db[i], bpp)))
|
||||
return 1;
|
||||
if (res_specified && res_matches(db[i], xres, yres)) {
|
||||
if (name_matches(db[i], name, namelen) ||
|
||||
(res_specified && res_matches(db[i], xres, yres))) {
|
||||
if(!fb_try_mode(var, info, &db[i], bpp)) {
|
||||
if(!refresh_specified || db[i].refresh == refresh)
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue