tvin: vdin: fix afbce 576p color anomaly [1/1]
authorXuhua Zhang <xuhua.zhang@amlogic.com>
Fri, 21 Dec 2018 05:16:24 +0000 (13:16 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 27 Dec 2018 11:12:30 +0000 (03:12 -0800)
PD#SWPL-3424

Problem:
dvd play 576p media, tl1 display color anomaly

Solution:
encoder use same default color setting with decoder

Verify:
x301

Change-Id: I8954874ea048b2d9e9b7aa58c883da1f306c4459
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
drivers/amlogic/media/vin/tvin/vdin/vdin_afbce.c

index 4c40c17..b5a2472 100644 (file)
@@ -409,9 +409,9 @@ void vdin_afbce_config(struct vdin_dev_s *devp)
        int sblk_num;
        int uncmp_bits;
        int uncmp_size;
-       int def_color_0 = 0;
-       int def_color_1 = 0;
-       int def_color_2 = 0;
+       int def_color_0 = 4095;
+       int def_color_1 = 2048;
+       int def_color_2 = 2048;
        int def_color_3 = 0;
        int hblksize_out = (devp->h_active + 31) >> 5;
        int vblksize_out = (devp->v_active + 3)  >> 2;