summaryrefslogtreecommitdiff
path: root/drivers/video/tegra
diff options
context:
space:
mode:
authorErik Gilling <konkers@android.com>2010-11-17 14:11:59 -0800
committerErik Gilling <konkers@android.com>2010-11-17 14:13:33 -0800
commit482c7cd4fa1eb9db3637717146c1c7953308b149 (patch)
tree5bbfe27a219d91f2f3ab06556c20e5f344444a6b /drivers/video/tegra
parent91e80b79243c1b6341c1a8d6e8e5e872b837bfea (diff)
video: tegra: fill in transparency info in 32bpp FB mode
also remove incorrect support for 24bpp Change-Id: Ic6528760bf2585ca5e7a2a68a200e3346694505e Signed-off-by: Erik Gilling <konkers@android.com>
Diffstat (limited to 'drivers/video/tegra')
-rw-r--r--drivers/video/tegra/fb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/tegra/fb.c b/drivers/video/tegra/fb.c
index ea768e1f42d8..47756e4225bb 100644
--- a/drivers/video/tegra/fb.c
+++ b/drivers/video/tegra/fb.c
@@ -124,13 +124,14 @@ static int tegra_fb_set_par(struct fb_info *info)
/* we only support RGB ordering for now */
switch (var->bits_per_pixel) {
case 32:
- case 24:
var->red.offset = 0;
var->red.length = 8;
var->green.offset = 8;
var->green.length = 8;
var->blue.offset = 16;
var->blue.length = 8;
+ var->transp.offset = 24;
+ var->transp.length = 8;
tegra_fb->win->fmt = TEGRA_WIN_FMT_R8G8B8A8;
break;
case 16: