From: Xuhua Zhang Date: Fri, 21 Dec 2018 05:16:24 +0000 (+0800) Subject: tvin: vdin: fix afbce 576p color anomaly [1/1] X-Git-Tag: hardkernel-4.9.236-104~1943 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ced96322a7a035fa70b9a7aa0a60830958dcb358;p=platform%2Fkernel%2Flinux-amlogic.git tvin: vdin: fix afbce 576p color anomaly [1/1] 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 --- diff --git a/drivers/amlogic/media/vin/tvin/vdin/vdin_afbce.c b/drivers/amlogic/media/vin/tvin/vdin/vdin_afbce.c index 4c40c17..b5a2472 100644 --- a/drivers/amlogic/media/vin/tvin/vdin/vdin_afbce.c +++ b/drivers/amlogic/media/vin/tvin/vdin/vdin_afbce.c @@ -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;