diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2005-11-07 04:00:54 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:53 -0500 |
commit | 003cfc0c56977f1c3ce48ddfd2073b7c6d75a5d8 (patch) | |
tree | 71095d3b794a6d6294b898a496c8a4e8664066bf /include/linux/fb.h | |
parent | 14c8102ffc9d08aa86fb08ed4bdb005768650e44 (diff) |
[PATCH] fbdev: Add helper to get an appropriate initial mode
Add new helper, fb_find_best_display(), which will search the modelist for the
best mode for the attached display. This requires an EDID block that is
converted to struct fb_monspecs and a private modelist. The search will be
done in this manner:
- if 1st detailed timing is preferred, use that
- else if dimensions of the display are known, use that to estimate xres and
- else if modelist has detailed timings, use the first detailed timing
- else, use the very first entry from the modelist
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/fb.h')
-rw-r--r-- | include/linux/fb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fb.h b/include/linux/fb.h index 68a787914d85..e7ff98e395f6 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h | |||
@@ -902,6 +902,8 @@ extern struct fb_videomode *fb_find_nearest_mode(struct fb_videomode *mode, | |||
902 | extern void fb_destroy_modelist(struct list_head *head); | 902 | extern void fb_destroy_modelist(struct list_head *head); |
903 | extern void fb_videomode_to_modelist(struct fb_videomode *modedb, int num, | 903 | extern void fb_videomode_to_modelist(struct fb_videomode *modedb, int num, |
904 | struct list_head *head); | 904 | struct list_head *head); |
905 | extern struct fb_videomode *fb_find_best_display(struct fb_monspecs *specs, | ||
906 | struct list_head *head); | ||
905 | 907 | ||
906 | /* drivers/video/fbcmap.c */ | 908 | /* drivers/video/fbcmap.c */ |
907 | extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp); | 909 | extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp); |