tvin: vdin: fix TXLX ATv channel switching crash [1/1]

PD#SWPL-3964

Problem:
ATv channel switching crash

Solution:
stop vdin, close afbc
need judge platform, there is not afbce on txlx

Verify:
verify by einstein

Change-Id: Ibcff1da47b9fdca7e1758b0d45e7d6800bfc8080
Signed-off-by: Xuhua Zhang <xuhua.zhang@amlogic.com>
This commit is contained in:
Xuhua Zhang
2019-01-08 15:35:23 +08:00
committed by Jianxin Pan
parent 4fb417cd03
commit f5abdd8c45

View File

@@ -654,11 +654,13 @@ void vdin_stop_dec(struct vdin_dev_s *devp)
disable_irq_nosync(devp->irq);
afbc_init_flag = 0;
while (++afbc_write_down_flag < afbc_write_down_test_times) {
if (vdin_afbce_read_writedown_flag() == 0)
usleep_range(5000, 5001);
else
break;
if (is_meson_tl1_cpu() && (devp->afbce_mode == 1)) {
while (++afbc_write_down_flag < afbc_write_down_test_times) {
if (vdin_afbce_read_writedown_flag() == 0)
usleep_range(5000, 5001);
else
break;
}
}
if (!(devp->parm.flag & TVIN_PARM_FLAG_CAP) &&