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>
This commit is contained in:
Erik Gilling
2010-11-17 14:11:59 -08:00
parent 91e80b7924
commit 482c7cd4fa

View File

@@ -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: