From 616a5ab789e92f0b11483f5dab0b619f71760930 Mon Sep 17 00:00:00 2001 From: Brian Zhu Date: Fri, 8 Jun 2018 19:00:43 +0800 Subject: [PATCH] vpp: enable pps last line dummy fixing for g12b PD#165090: vpp: enable pps last line dummy fixing for g12b Change-Id: I276d34c1864c4d5265162c6af092b63e1a92efb9 Signed-off-by: Brian Zhu --- drivers/amlogic/media/video_sink/video.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index 34fb82b..f03009c 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -5899,6 +5899,12 @@ SET_FILTER: VPP_SC_HBANK_LENGTH_BIT, VPP_SC_BANK_LENGTH_WID); + /* fix the pps last line dummy issue */ + if (cpu_after_eq(MESON_CPU_MAJOR_ID_G12B)) + VSYNC_WR_MPEG_REG_BITS( + VPP_SC_MISC + cur_dev->vpp_off, + 1, 24, 1); + /* #if MESON_CPU_TYPE >= MESON_CPU_TYPE_MESON8 */ if ((get_cpu_type() >= MESON_CPU_MAJOR_ID_M8) && !is_meson_mtvd_cpu()) { -- 2.7.4