Skip to content
Snippets Groups Projects
Commit b923690c authored by Nicolas Dufresne's avatar Nicolas Dufresne
Browse files

media: wave5: Ensure enough capture buffer are queued

As we don't remove decoded buffers, we need to ensure the rdy list have the
minimum buffer cound the firmware needs. This guaranty that each PIC_RUN call
have sufficient buffers. This retores BUMPING_A_ericsson_1 test.
parent 3e194574
No related branches found
No related tags found
No related merge requests found
...@@ -1754,7 +1754,7 @@ static int wave5_vpu_dec_job_ready(void *priv) ...@@ -1754,7 +1754,7 @@ static int wave5_vpu_dec_job_ready(void *priv)
if (!m2m_ctx->cap_q_ctx.q.streaming) { if (!m2m_ctx->cap_q_ctx.q.streaming) {
dev_dbg(inst->dev->dev, "CAPTURE queue must be streaming to queue jobs!\n"); dev_dbg(inst->dev->dev, "CAPTURE queue must be streaming to queue jobs!\n");
return false; return false;
} else if (!v4l2_m2m_num_dst_bufs_ready(m2m_ctx)) { } else if (v4l2_m2m_num_dst_bufs_ready(m2m_ctx) < (inst->fbc_buf_count - 1)) {
dev_dbg(inst->dev->dev, dev_dbg(inst->dev->dev,
"No capture buffer ready to decode!\n"); "No capture buffer ready to decode!\n");
return false; return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment