osd: set viu2 hold line value to default value [1/1]
authorPengcheng Chen <pengcheng.chen@amlogic.com>
Mon, 3 Jun 2019 07:57:29 +0000 (15:57 +0800)
committerPengcheng Chen <pengcheng.chen@amlogic.com>
Tue, 11 Jun 2019 08:46:29 +0000 (16:46 +0800)
PD#TV-6244

Problem:
viu2 hold line too big caused v display offset

Solution:
1.set viu2 hold line value to default value

Verify:
Verified by tl1

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

index ca0170b..54b9c26 100644 (file)
@@ -3691,7 +3691,7 @@ void osd_set_hold_line(int hold_line)
        int i;
        unsigned int data32 = 0, val = 0;
 
-       for (i = 0; i <= osd_hw.osd_meson_dev.viu1_osd_count; i++) {
+       for (i = 0; i < osd_hw.osd_meson_dev.viu1_osd_count; i++) {
                if (osd_hw.powered[i]) {
                        data32 = VSYNCOSD_RD_MPEG_REG
                                (hw_osd_reg_array[i].osd_fifo_ctrl_stat);