media_module: fixed mpeg2 playback stuck issue [1/1]
authorPeng Yixin <yixin.peng@amlogic.com>
Tue, 10 Sep 2019 11:54:06 +0000 (19:54 +0800)
committerHui Zhang <hui.zhang@amlogic.com>
Thu, 10 Oct 2019 05:53:36 +0000 (22:53 -0700)
PD#OTT-5167

Problem:
mpeg2 formate playback stuck when switch channel.

Solution:
Modify the condition to trigger decoder timeout to
resolve this problem.

Verify:
U212

Change-Id: I2642a90f9debd1dcc656581c0771c0f1d8a640d0
Signed-off-by: Peng Yixin <yixin.peng@amlogic.com>
drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c

index 36894e6330d8c88f6b939ad4a55ac09a281ecd3b..a6f25beae54211dd12cccd0c609191ada11110fd 100644 (file)
@@ -2094,8 +2094,6 @@ static void check_timer_func(unsigned long arg)
        }
 
        if (((debug_enable & PRINT_FLAG_TIMEOUT_STATUS) == 0) &&
-               (vdec_frame_based(vdec) ||
-               ((u32)READ_VREG(VLD_MEM_VIFIFO_LEVEL) > 0x100)) &&
                (timeout_val > 0) &&
                (hw->start_process_time > 0) &&
                ((1000 * (jiffies - hw->start_process_time) / HZ)