Skip to content

Commit

Permalink
Merge pull request #292 from vicamo/for-upstream/accommodate-to-v4l2-…
Browse files Browse the repository at this point in the history
…field-rename

v4l2: accommodate to struct filed rename of vb2_buffer::min_buffers_needed
  • Loading branch information
patjak committed Mar 22, 2024
2 parents 2b287d4 + d894bef commit b1f7424
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fthd_v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,11 @@ int fthd_v4l2_register(struct fthd_private *dev_priv)
q->mem_ops = &vb2_dma_sg_memops;
q->buf_struct_size = 0;//sizeof(struct vpif_cap_buffer);
q->timestamp_flags = V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC;
#if LINUX_VERSION_CODE < KERNEL_VERSION(6,8,0)
q->min_buffers_needed = 1;
#else
q->min_queued_buffers = 1;
#endif
q->lock = &dev_priv->vb2_queue_lock;

ret = vb2_queue_init(q);
Expand Down

0 comments on commit b1f7424

Please sign in to comment.