[PATCH] nvidiafb: Use CVT to get mode for digital displays
authorAntonino A. Daplas <adaplas@gmail.com>
Fri, 9 Sep 2005 20:09:59 +0000 (13:09 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 21:03:39 +0000 (14:03 -0700)
If no EDID block is probed, if the display is digital and if no mode option is
specified by the user, get the timings by CVT instead of using the global mode
database.

Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/video/nvidia/nvidia.c

index 32952204ce331a4b6058cbce6f04f1417b999382..3620de0f252e6100c3da6a895de1cf7f3297dc14 100644 (file)
@@ -1328,7 +1328,7 @@ static int __devinit nvidia_set_fbinfo(struct fb_info *info)
                char buf[16];
 
                memset(buf, 0, 16);
-               snprintf(buf, 15, "%dx%d", par->fpWidth, par->fpHeight);
+               snprintf(buf, 15, "%dx%dMR", par->fpWidth, par->fpHeight);
                fb_find_mode(&nvidiafb_default_var, info, buf, specs->modedb,
                             specs->modedb_len, &modedb, 8);
        }