[h265d_vdpu34x]: optimize irq status checking

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Icf42b2951d9519e0d26a3c1b6a79c2d03bc2224b
This commit is contained in:
Yandong Lin
2022-07-29 14:04:37 +08:00
committed by Herman Chen
parent fe759f2719
commit f478ba7cdf

View File

@@ -1300,7 +1300,9 @@ ERR_PROC:
if (task->dec.flags.parse_err ||
task->dec.flags.ref_err ||
hw_regs->irq_status.reg224.dec_error_sta ||
hw_regs->irq_status.reg224.buf_empty_sta) {
hw_regs->irq_status.reg224.buf_empty_sta ||
hw_regs->irq_status.reg224.dec_bus_sta ||
!hw_regs->irq_status.reg224.dec_rdy_sta) {
if (!reg_cxt->fast_mode) {
if (reg_cxt->dec_cb)
mpp_callback(reg_cxt->dec_cb, &task->dec);