cyber2000fb.c: Fix 16bpp mode
PATCH 1/1 cyber2000fb.c: Fix 16bpp mode
In reply to a message not in the archiveJan Rinze noticed that 16bpp screen mode is not working on Netwinder:
"After some deduction it appeared that it was running in 24bpp instead of 16bpp. Found the bug: a missing 'break' statement at the end of a switch case. After adding the break statement 16bpp works fine."
drivers/video/cyber2000fb.c +2 -0
@@ -874,6 +874,8 @@ static int cyber2000fb_set_par(struct fb_info *info)default :BUG (); } +break ; +case 24 :/* TRUECOLOUR, 16m */ hw.co_pixfmt =CO_PIXFMT_24BPP ; hw.width *=3 ;
Signature · 8 lines
Martin Michlmayr http://www.cyrius.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Quoted 14 lines · Martin Michlmayr
Jan Rinze noticed that 16bpp screen mode is not working on Netwinder:
"After some deduction it appeared that it was running in 24bpp instead of 16bpp. Found the bug: a missing 'break' statement at the end of a switch case. After adding the break statement 16bpp works fine."Signed-off-by Martin Michlmayr <[email protected]>Cc Jan Rinze <[email protected]>Cc Woody Suwalski <[email protected]>
drivers/video/cyber2000fb.c static int cyber2000fb_set_par(struct fb_info *info) · line 881
Quoted 8 lines
drivers/video/cyber2000fb.c +2
-0@@ -874,6 +874,8 @@ static int cyber2000fb_set_par(struct fb_info *info)default :BUG (); } +break ; +case 24 :/* TRUECOLOUR, 16m */ hw.co_pixfmt =CO_PIXFMT_24BPP ; hw.width *=3 ;
Yes, with the above bug fix I have tested that 16-bit X fbdev works OK. Woody
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
Quoted 4 lines · Martin Michlmayr
Jan Rinze noticed that 16bpp screen mode is not working on Netwinder:
"After some deduction it appeared that it was running in 24bpp instead of 16bpp. Found the bug: a missing 'break' statement at the end of a switch case. After adding the break statement 16bpp works fine."
You can ignore this patch. It went in via Russell King already, see
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=c2ec21c5c8f15c079c209f403d582f3134785060
Signature · 8 lines
Martin Michlmayr http://www.cyrius.com/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/