pmaports/device/testing/linux-samsung-star2lte/02-decon_dsi-BGRA-to-RGBA.patch
Ishaaq 9f15da8d46
samsung-starlte: new device (MR 4102)
[ci:skip-build]: Already built successfully in CI
2023-05-21 07:32:32 +02:00

21 lines
755 B
Diff

Adapted from ../linux-samsung-dream/05-BGR-to-RGB-colors.patch.
Fixes color order - from BGRA to RGBA.
diff --git a/drivers/video/fbdev/exynos/dpu_9810/decon_dsi.c b/drivers/video/fbdev/exynos/dpu_9810/decon_dsi.c
index 07a084d805af..4504591db73e 100644
--- a/drivers/video/fbdev/exynos/dpu_9810/decon_dsi.c
+++ b/drivers/video/fbdev/exynos/dpu_9810/decon_dsi.c
@@ -807,11 +807,11 @@ int decon_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
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;