summaryrefslogtreecommitdiffstats
path: root/drivers/video/s3c-fb.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2011-11-07 15:03:01 +0900
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-11-11 16:56:37 +0000
commit4420dd2b306f1997232a13462bca0d420be5b1b8 (patch)
treeaea75d6fb4396b00cfadd4ff286ace18d090a2e9 /drivers/video/s3c-fb.c
parente78bb882bf318bb41e17b33729cca3bdd26b42a0 (diff)
downloadlinux-4420dd2b306f1997232a13462bca0d420be5b1b8.tar.bz2
video: s3c-fb: fix transparency length for pixel blending
Transparency length is fixed for pixel blending in order to support ARGB 8888 format. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'drivers/video/s3c-fb.c')
-rw-r--r--drivers/video/s3c-fb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 0753b1cfcb8b..12eaee0b29e6 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -621,7 +621,8 @@ static int s3c_fb_set_par(struct fb_info *info)
} else if (var->transp.length == 1)
data |= WINCON1_BPPMODE_25BPP_A1888
| WINCON1_BLD_PIX;
- else if (var->transp.length == 4)
+ else if ((var->transp.length == 4) ||
+ (var->transp.length == 8))
data |= WINCON1_BPPMODE_28BPP_A4888
| WINCON1_BLD_PIX | WINCON1_ALPHA_SEL;
else