summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-12-07 00:53:47 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-01-04 12:06:57 +0100
commitd7d24d772f2c56e32ce8beb1a05a04fe28e4d888 (patch)
tree8460a14f859e8265c3b3fcdb2fd25f9c2879f9af /drivers
parent455466400c4164c14756113405fa5e00dea399a4 (diff)
media: ti-vpe: cal: Remove DMA queue empty check at start streaming time
The vb2 queue ensures that the start streaming operation will only be called with a minimal number of buffers queued to the driver. There's thus no need to manually check if the DMA queue is empty. Remove the check. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Benoit Parrot <bparrot@ti.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/ti-vpe/cal-video.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/media/platform/ti-vpe/cal-video.c b/drivers/media/platform/ti-vpe/cal-video.c
index ad1e85189831..bfc3ba4a96af 100644
--- a/drivers/media/platform/ti-vpe/cal-video.c
+++ b/drivers/media/platform/ti-vpe/cal-video.c
@@ -511,12 +511,6 @@ static int cal_start_streaming(struct vb2_queue *vq, unsigned int count)
int ret;
spin_lock_irq(&ctx->slock);
- if (list_empty(&dma_q->active)) {
- spin_unlock_irq(&ctx->slock);
- ctx_dbg(3, ctx, "buffer queue is empty\n");
- return -EIO;
- }
-
buf = list_entry(dma_q->active.next, struct cal_buffer, list);
ctx->cur_frm = buf;
ctx->next_frm = buf;