From ef2f2da521f6a8229e82e4e720b61347693e8c12 Mon Sep 17 00:00:00 2001 From: "zhiwei.yuan" Date: Wed, 25 Sep 2019 16:22:43 +0800 Subject: [PATCH] vdin: TvPlayer ANR when screen capture [1/1] PD#SWPL-14561 Problem: caused by enc v line check mechanism Solution: remove line check since it's unnecessary Verify: verified by t962x2_x301 Change-Id: Ic2578b99234ac001baf2e12314119e6a01b0a79c Signed-off-by: zhiwei.yuan --- drivers/amlogic/media/vin/tvin/viu/viuin.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/vin/tvin/viu/viuin.c b/drivers/amlogic/media/vin/tvin/viu/viuin.c index c79f379..5a0ddc8 100644 --- a/drivers/amlogic/media/vin/tvin/viu/viuin.c +++ b/drivers/amlogic/media/vin/tvin/viu/viuin.c @@ -205,7 +205,8 @@ static int viuin_open(struct tvin_frontend_s *fe, enum tvin_port_e port) default: break; } - viuin_check_venc_line(devp); + /*no need check here, will timeout sometimes*/ + /*viuin_check_venc_line(devp);*/ if (port == TVIN_PORT_VIU1_VIDEO) { /* enable hsync for vdin loop */ wr_bits_viu(VIU_MISC_CTRL1, 1, 28, 1); @@ -316,7 +317,8 @@ static void viuin_close(struct tvin_frontend_s *fe) { struct viuin_s *devp = container_of(fe, struct viuin_s, frontend); - viuin_check_venc_line(devp); + /*no need check here, will timeout sometimes*/ + /*viuin_check_venc_line(devp);*/ memset(&devp->parm, 0, sizeof(struct vdin_parm_s)); /*close the venc to vdin path*/ if (open_cnt) -- 2.7.4