pmaports/device/testing/linux-samsung-manta/01-fix-video-argb-setting.patch
blacksilver 7e6351e086
samsung-manta: charging, firmware, wifi, alsa, framebuffer (MR 2892)
[ci:skip-build] already built successfully in CI
2022-02-09 17:50:39 -08:00

18 lines
531 B
Diff

diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index ac028c53f..61ef8915f 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -508,11 +508,11 @@ static int s3c_fb_check_var(struct fb_var_screeninfo *var,
case 24:
/* our 24bpp is unpacked, so 32bpp */
var->bits_per_pixel = 32;
- var->red.offset = 16;
+ var->red.offset = 0;
var->red.length = 8;
var->green.offset = 8;
var->green.length = 8;
- var->blue.offset = 0;
+ var->blue.offset = 16;
var->blue.length = 8;
break;