vdac: fix atv/dtv resume no signal issue [1/1]
authorNian Jing <nian.jing@amlogic.com>
Fri, 23 Nov 2018 03:05:03 +0000 (11:05 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 23 Nov 2018 08:00:36 +0000 (00:00 -0800)
PD#SWPL-2351

Problem:
atv/dtv no signal when suspend after switch from hdmi

Solution:
disable vdac bandgap when suspend

Verify:
test pass on P321

Change-Id: I0449f0d9673f46928b8951249f5759a4a1f16562
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
drivers/amlogic/media/vout/vdac/vdac_dev.c

index 7383b85..5f50dc9 100644 (file)
@@ -691,6 +691,8 @@ static int __exit aml_vdac_remove(struct platform_device *pdev)
 static int amvdac_drv_suspend(struct platform_device *pdev,
                pm_message_t state)
 {
+       if (s_vdac_data->cpu_id == VDAC_CPU_TXL)
+               vdac_hiu_reg_write(HHI_VDAC_CNTL0, 0);
        pr_info("%s: suspend module\n", __func__);
        return 0;
 }