From 157e49f64e286af3dd706cd857f7bd153b4a29fc Mon Sep 17 00:00:00 2001 From: "shihong.zheng" Date: Wed, 19 Aug 2020 19:31:06 +0800 Subject: [PATCH] mpeg12: fix vfifo data empty bug. [1/1] PD#SWPL-31902 Problem: fix mpeg12 vfifo data empty status bug. Solution: consume current chunk and do not get more chunk for this run. Verify: ah212 Change-Id: I7c0eb7c7283937a4179246d5bce7ca8ad1d72893 Signed-off-by: shihong.zheng --- drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c b/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c index ef45eb8..832e3c3 100644 --- a/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c +++ b/drivers/frame_provider/decoder/mpeg12/vmpeg12_multi.c @@ -1894,14 +1894,8 @@ static irqreturn_t vmpeg12_isr_thread_fn(struct vdec_s *vdec, int irq) READ_VREG(VLD_MEM_VIFIFO_CONTROL), READ_VREG(VIFF_BIT_CNT)); if (vdec_frame_based(vdec)) { - u32 bitcnt = READ_VREG(VIFF_BIT_CNT); - if (bitcnt < 32) { - reset_process_time(hw); - hw->dec_result = DEC_RESULT_GET_DATA; - } else { - userdata_pushed_drop(hw); - hw->dec_result = DEC_RESULT_DONE; - } + userdata_pushed_drop(hw); + hw->dec_result = DEC_RESULT_DONE; vdec_schedule_work(&hw->work); } else { hw->dec_result = DEC_RESULT_AGAIN; -- 2.20.1