From a7884835b7059bedf6b5075ea63cec4fa81572b7 Mon Sep 17 00:00:00 2001 From: Rui Wang Date: Thu, 19 Sep 2019 10:33:53 +0800 Subject: [PATCH] video: fix video axis no changes when enable hold video [1/1] PD#TV-10251 Problem: PE190005-1038 press the OK button switching to the ATV channel, the screen is not full screen. Solution: After the video property changes, if the hold video is enabled, the current frame needs to be refreshed. Verify: Verified with X301 Change-Id: I05cb7255147b1950cb6b9d5813148a9ce0aa6e66 Signed-off-by: Rui Wang --- drivers/amlogic/media/video_sink/video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index 4fe787d7e28b..506f6047a92b 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -7199,7 +7199,7 @@ static irqreturn_t vsync_isr_in(int irq, void *dev_id) } /* setting video display property in underflow mode */ - if ((!vf) && cur_dispbuf && (video_property_changed)) + if ((!vf || hold_video) && cur_dispbuf && (video_property_changed)) vsync_toggle_frame(cur_dispbuf, __LINE__); /*debug info for skip & repeate vframe case*/ @@ -7219,6 +7219,7 @@ static irqreturn_t vsync_isr_in(int irq, void *dev_id) } else { ATRACE_COUNTER("underflow", 0); } + video_get_vf_cnt = 0; if (platform_type == 1) { /* toggle_3d_fa_frame*/