Skip to content

Commit

Permalink
video: s3c-fb: fix red offset and length for ARGB232 format
Browse files Browse the repository at this point in the history
Green pixel and blue pixel are 3 bits and 2 bits respectively
at ARGB232 format. Thus, the value of red offset should be 5,
not 4. Also, the value of red length should be 2, because
red pixel is 2 bits at ARGB232 format.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
  • Loading branch information
Jingoo Han committed Nov 26, 2012
1 parent 418d620 commit 5a9c30a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/s3c-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ static int s3c_fb_check_var(struct fb_var_screeninfo *var,
case 8:
if (sfb->variant.palette[win->index] != 0) {
/* non palletised, A:1,R:2,G:3,B:2 mode */
var->red.offset = 4;
var->red.offset = 5;
var->green.offset = 2;
var->blue.offset = 0;
var->red.length = 5;
var->red.length = 2;
var->green.length = 3;
var->blue.length = 2;
var->transp.offset = 7;
Expand Down

0 comments on commit 5a9c30a

Please sign in to comment.