osd: fix a green line displayed when output is yuv420 4k/60hz [1/1]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Tue, 22 Jan 2019 06:42:34 +0000 (14:42 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 23 Jan 2019 01:36:20 +0000 (17:36 -0800)
PD#SWPL-4427

Problem:
a green line displayed when output is yuv420 4k/60hz

Solution:
set dummy data to 0x808000 can fix a green line
displayed when output is yuv420 4k/60hz

Verify:
verify by fanklin

Change-Id: I06125d36c2fb06a61dd072a1789217e7c3705207
Signed-off-by: Pengcheng Chen <pengcheng.chen@amlogic.com>
drivers/amlogic/media/osd/osd_hw.c

index 584a72e..4640eab 100644 (file)
@@ -6700,13 +6700,10 @@ static void osd_set_freescale(u32 index,
                osd_hw.free_src_data[index].x_start + 1;
        if ((osd_hw.osd_meson_dev.cpu_id ==
                __MESON_CPU_MAJOR_ID_G12A) &&
-               (height != src_height)) {
-               osd_hw.osd_meson_dev.dummy_data = 0x000000;
+               (height != src_height))
                osd_set_dummy_data(index, 0);
-       } else {
-               osd_hw.osd_meson_dev.dummy_data = 0x808000;
+       else
                osd_set_dummy_data(index, 0xff);
-       }
        osd_log_dbg2(MODULE_BLEND, "osd%d:free_src_data:%d,%d,%d,%d\n",
                index,
                osd_hw.free_src_data[index].x_start,