Merge tag 'tags/next-media-videobuf-20240827' of git://git.kernel.org/pub/scm/linux/kernel/git/pinchartl/linux.git
- videobuf2 regression fix Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> From: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: https://patchwork.linuxtv.org/project/linux-media/patch/20240827122125.GA17846@pendragon.ideasonboard.com/
This commit is contained in:
@@ -2632,13 +2632,6 @@ int vb2_core_queue_init(struct vb2_queue *q)
|
||||
if (WARN_ON(q->supports_requests && q->min_queued_buffers))
|
||||
return -EINVAL;
|
||||
|
||||
/*
|
||||
* The minimum requirement is 2: one buffer is used
|
||||
* by the hardware while the other is being processed by userspace.
|
||||
*/
|
||||
if (q->min_reqbufs_allocation < 2)
|
||||
q->min_reqbufs_allocation = 2;
|
||||
|
||||
/*
|
||||
* If the driver needs 'min_queued_buffers' in the queue before
|
||||
* calling start_streaming() then the minimum requirement is
|
||||
|
||||
Reference in New Issue
Block a user