pmaports/device/testing/linux-samsung-j7elte/fix-argb.patch
Kabir Akzaman 891109adce
samsung-j7elte: new device (Samsung Galaxy J7) (MR 3715)
[ci:skip-build] already built successfully in CI
2022-12-19 22:37:58 -08:00

19 lines
703 B
Diff

Based on Error1001's patch, 02-fix-video-argb-setting.patch
diff --git a/drivers/video/exynos/decon_7580/decon-int_drv.c b/drivers/video/exynos/decon_7580/decon-int_drv.c
index c37ec143..27375b6f 100755
--- a/drivers/video/exynos/decon_7580/decon-int_drv.c
+++ b/drivers/video/exynos/decon_7580/decon-int_drv.c
@@ -453,11 +453,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;