media: rockchip: isp: capture buf queue add to list tail

Change-Id: I21e030408ca936bd6f567536a6c12c9be3caebf5
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
Cai YiWei
2021-04-01 09:21:10 +08:00
committed by Tao Huang
parent c95ad09232
commit 126a959455
2 changed files with 2 additions and 25 deletions

View File

@@ -634,17 +634,7 @@ static void rkisp_buf_queue(struct vb2_buffer *vb)
stream->id, ispbuf->buff_addr[0]);
spin_lock_irqsave(&stream->vbq_lock, lock_flags);
/* XXX: replace dummy to speed up */
if (stream->streaming &&
!stream->next_buf &&
!stream->interlaced &&
atomic_read(&stream->ispdev->isp_sdev.frm_sync_seq) == 0) {
stream->next_buf = ispbuf;
stream->ops->update_mi(stream);
} else {
list_add_tail(&ispbuf->queue, &stream->buf_queue);
}
list_add_tail(&ispbuf->queue, &stream->buf_queue);
spin_unlock_irqrestore(&stream->vbq_lock, lock_flags);
}

View File

@@ -2107,20 +2107,7 @@ void rkisp_spbuf_queue(struct rkisp_stream *stream, struct rkisp_buffer *sp_buf)
unsigned long lock_flags = 0;
spin_lock_irqsave(&stream->vbq_lock, lock_flags);
/* XXX: replace dummy to speed up */
if (stream->streaming &&
!stream->next_buf &&
!stream->interlaced &&
stream->id != RKISP_STREAM_DMATX0 &&
stream->id != RKISP_STREAM_DMATX1 &&
stream->id != RKISP_STREAM_DMATX2 &&
stream->id != RKISP_STREAM_DMATX3 &&
atomic_read(&stream->ispdev->isp_sdev.frm_sync_seq) == 0) {
stream->next_buf = sp_buf;
stream->ops->update_mi(stream);
} else {
list_add_tail(&sp_buf->queue, &stream->buf_queue);
}
list_add_tail(&sp_buf->queue, &stream->buf_queue);
spin_unlock_irqrestore(&stream->vbq_lock, lock_flags);
}