aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2015-11-04 10:10:52 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-12-29 04:06:28 -0500
commit7d18bbee78d39f2a69929f59920205efeee864e2 (patch)
tree6c5dd4edfcb56bf40019e4ba2d92f6871e667e08
parentfd2eac5a66e5830e99324ba65a33d883cfd31d9e (diff)
OMAPDSS: fix rgb-to-yuv color conv coefs
The color conversion coefficients for RGB to YUV conversion (used with writeback) don't result in the correct result. This patch sets the correct coefficients. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/fbdev/omap2/dss/dispc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/fbdev/omap2/dss/dispc.c b/drivers/video/fbdev/omap2/dss/dispc.c
index 837b1f508d79..c50bb0124d87 100644
--- a/drivers/video/fbdev/omap2/dss/dispc.c
+++ b/drivers/video/fbdev/omap2/dss/dispc.c
@@ -713,10 +713,12 @@ static void dispc_setup_color_conv_coef(void)
713 int i; 713 int i;
714 int num_ovl = dss_feat_get_num_ovls(); 714 int num_ovl = dss_feat_get_num_ovls();
715 const struct color_conv_coef ctbl_bt601_5_ovl = { 715 const struct color_conv_coef ctbl_bt601_5_ovl = {
716 /* YUV -> RGB */
716 298, 409, 0, 298, -208, -100, 298, 0, 517, 0, 717 298, 409, 0, 298, -208, -100, 298, 0, 517, 0,
717 }; 718 };
718 const struct color_conv_coef ctbl_bt601_5_wb = { 719 const struct color_conv_coef ctbl_bt601_5_wb = {
719 66, 112, -38, 129, -94, -74, 25, -18, 112, 0, 720 /* RGB -> YUV */
721 66, 129, 25, 112, -94, -18, -38, -74, 112, 0,
720 }; 722 };
721 723
722 for (i = 1; i < num_ovl; i++) 724 for (i = 1; i < num_ovl; i++)