mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-03 11:43:03 +09:00
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:
@@ -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) &&
|
||||
|
||||
Reference in New Issue
Block a user