vdin: TvPlayer ANR when screen capture [1/1]
authorzhiwei.yuan <zhiwei.yuan@amlogic.com>
Wed, 25 Sep 2019 08:22:43 +0000 (16:22 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 30 Sep 2019 06:01:18 +0000 (23:01 -0700)
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 <zhiwei.yuan@amlogic.com>
drivers/amlogic/media/vin/tvin/viu/viuin.c

index c79f379..5a0ddc8 100644 (file)
@@ -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)