summaryrefslogtreecommitdiffstats
path: root/drivers/video/valkyriefb.h
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2009-11-04 00:43:16 +1100
committerGeert Uytterhoeven <geert@linux-m68k.org>2010-02-27 18:31:12 +0100
commitd876c11a0fd40993136f5cc1e81371ccc6c21a63 (patch)
treed2f09796146f4d8a61499759191e4cb832b1984c /drivers/video/valkyriefb.h
parenteeb9c182a6ad8bc130377adb0a4cd7b95dd15f49 (diff)
fbdev: mac_var_to_mode() fix
The valkyriefb driver assumes that this logic holds: mac_vmode_to_var(X, cmode, &var); mac_var_to_vmode(&var, &vmode, &cmode); assert(vmode == X); But it doesn't hold because mac_var_to_vmode() can return a mode with a slower pixel clock, even when a match is available. So we end up with this failure: using video mode 11 and color mode 0. valkyriefb: vmode 12 not valid. valkyriefb: can't set default video mode valkyriefb: vmode 12 not valid. Rather than have mac_var_to_mode() return the first reasonable mode it finds, have it return the mode that is closest to the requested one (or the mode with the closest longer pixel clock period if there is no exact match). Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/video/valkyriefb.h')
0 files changed, 0 insertions, 0 deletions