From 56007f2eef765f7184d27c3d84ca07b1f7bca848 Mon Sep 17 00:00:00 2001 From: Brian Zhu Date: Wed, 26 Dec 2018 22:37:51 +0800 Subject: [PATCH] vpp: set the preblend horz size correctly for hdr input [2/2] PD#SWPL-3478 Problem: the border below has a abnormal line Solution: Set the preblend horz size correct Verify: verify on T962X2-X301 Change-Id: Ie7b20a6b030d40d3a0eb3458df07e7632491aa2c Signed-off-by: Brian Zhu --- drivers/amlogic/media/video_sink/video.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index 7932cf2f4394..16f7448e0bea 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -1390,7 +1390,16 @@ static void vpp_settings_h(struct vpp_frame_par_s *framePtr) ((framePtr->VPP_hsc_endp & VPP_VD_SIZE_MASK) << VPP_VD1_END_BIT)); } else{ - + if (!legacy_vpp) { + x_lines = (zoom_end_x_lines - + zoom_start_x_lines + 1) + / (framePtr->hscale_skip_count + 1); + VSYNC_WR_MPEG_REG( + VPP_PREBLEND_VD1_H_START_END, + ((0 & VPP_VD_SIZE_MASK) << + VPP_VD1_START_BIT) | (((x_lines - 1) & + VPP_VD_SIZE_MASK) << VPP_VD1_END_BIT)); + } VSYNC_WR_MPEG_REG(VPP_POSTBLEND_VD1_H_START_END + cur_dev->vpp_off, ((framePtr->VPP_hsc_startp & VPP_VD_SIZE_MASK)