vdin: TL1 screen is black when switch out hdmi to others [1/1]
authorzhiwei.yuan <zhiwei.yuan@amlogic.com>
Mon, 2 Sep 2019 06:08:00 +0000 (14:08 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 3 Sep 2019 09:24:22 +0000 (02:24 -0700)
PD#SWPL-13556

Problem:
hdmi signal has changed(color space, hdr etc.) before switch source

Solution:
clear the change flag when stop dec

Verify:
verified by t962x2_x301

Change-Id: I79c6dba9bf69f70850714c5810ae724b5d35e1e3
Signed-off-by: zhiwei.yuan <zhiwei.yuan@amlogic.com>
drivers/amlogic/media/vin/tvin/vdin/vdin_drv.c

index 826baa4f0273ba318259b9adec5478888d9b2160..757fad5f429d842e3c4415146b07f3e0ba3c2f75 100644 (file)
@@ -798,6 +798,8 @@ void vdin_stop_dec(struct vdin_dev_s *devp)
        devp->flags &= (~VDIN_FLAG_RDMA_ENABLE);
        devp->ignore_frames = 0;
        devp->cycle = 0;
+       /*reset csc_cfg in case it is enabled before switch out hdmi*/
+       devp->csc_cfg = 0;
 
         /* clear color para*/
        memset(&devp->prop, 0, sizeof(devp->prop));