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 <shihong.zheng@amlogic.com>
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;