pmaports/device/testing/linux-samsung-crownlte/02-decon_dsi-BGRA-to-RGBA.patch
Przemysław Romanik ce2ca309a6
samsung-crownlte: new device (MR 2959)
[ci:skip-build]: already built successfully in CI
2022-02-21 23:11:13 +01: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;