Skip to content

Commit 3b8a269

Browse files
prabhakarladmchehab
authored andcommitted
[media] media: davinci: vpif_capture: drop setting of vb2 buffer state to ACTIVE
this patch drops setting of vb2 buffer state to VB2_BUF_STATE_ACTIVE, as any buffer queued to the driver is marked ACTIVE by the vb2 core. Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent 55d3b43 commit 3b8a269

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎drivers/media/platform/davinci/vpif_capture.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ static int vpif_start_streaming(struct vb2_queue *vq, unsigned int count)
213213
/* Remove buffer from the buffer queue */
214214
list_del(&common->cur_frm->list);
215215
spin_unlock_irqrestore(&common->irqlock, flags);
216-
/* Mark state of the current frame to active */
217-
common->cur_frm->vb.state = VB2_BUF_STATE_ACTIVE;
218216

219217
addr = vb2_dma_contig_plane_dma_addr(&common->cur_frm->vb, 0);
220218

@@ -350,7 +348,6 @@ static void vpif_schedule_next_buffer(struct common_obj *common)
350348
/* Remove that buffer from the buffer queue */
351349
list_del(&common->next_frm->list);
352350
spin_unlock(&common->irqlock);
353-
common->next_frm->vb.state = VB2_BUF_STATE_ACTIVE;
354351
addr = vb2_dma_contig_plane_dma_addr(&common->next_frm->vb, 0);
355352

356353
/* Set top and bottom field addresses in VPIF registers */

0 commit comments

Comments
 (0)