Skip to contentSkip to conversation

cyber2000fb.c: Fix 16bpp mode

PATCH In review Martin Michlmayr 2 participants 3 messages Nov 8, 2007 – Nov 10, 2007 1 message not in the archive Framebuffer layer

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 000501c81e5e$c1334160$4399c420$@nl

#1 lore raw

PATCH 1/1 cyber2000fb.c: Fix 16bpp mode

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."

Cc Jan Rinze <[email protected]>
Cc Woody Suwalski <[email protected]>
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/
#2 lore raw
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."

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/

#3 lore raw
In reply to Martin Michlmayr
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/