summaryrefslogtreecommitdiff
authorDezhi Kong <dezhi.kong@amlogic.com>2018-04-25 11:29:38 (GMT)
committer Xindong Xu <xindong.xu@amlogic.com>2018-05-04 03:23:02 (GMT)
commitc87631a086ee33a4086a9cc07cfa3166345bf13b (patch)
tree21d8420838341ab3cd71bc90c4d5b17305730af1
parentcb3bb28f2ba8ef0596d9a38c291e06e7bc2b0f8e (diff)
downloadcommon-c87631a086ee33a4086a9cc07cfa3166345bf13b.zip
common-c87631a086ee33a4086a9cc07cfa3166345bf13b.tar.gz
common-c87631a086ee33a4086a9cc07cfa3166345bf13b.tar.bz2
vpp: fix vskip line calc issue
PD#164045: vpp: fix vskip line calc issue Change-Id: I9ff41cac9220bae9f521987d4716e462b28c5fff Signed-off-by: Dezhi Kong <dezhi.kong@amlogic.com>
Diffstat
-rw-r--r--drivers/amlogic/media/video_sink/vpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/amlogic/media/video_sink/vpp.c b/drivers/amlogic/media/video_sink/vpp.c
index 253184e..0666235 100644
--- a/drivers/amlogic/media/video_sink/vpp.c
+++ b/drivers/amlogic/media/video_sink/vpp.c
@@ -689,8 +689,8 @@ vpp_process_speed_check(s32 width_in,
if (clk_temp)
input_time_us = height_in * width_in / clk_temp;
clk_temp = clk_vpu / 1000000;
- width_out = next_frame_par->VPP_vsc_endp -
- next_frame_par->VPP_vsc_startp + 1;
+ width_out = next_frame_par->VPP_hsc_endp -
+ next_frame_par->VPP_hsc_startp + 1;
if (clk_temp)
dummy_time_us = (vtotal * htotal -
height_out * width_out) / clk_temp;