Benjamin Gaignard d7cdb5946f media: videobuf2: Update vb2_is_busy() logic
Do not rely on the number of allocated buffers to know if the
queue is busy but on a flag set when at least one buffer has been allocated
by REQBUFS or CREATE_BUFS ioctl.
The flag is reset when REQBUFS is called with count = 0 or the file
handle is closed.
This is needed because remove buffers feature will be able to remove
all the buffers from a queue while streaming so relying on the number
of allocated buffers in the queue won't be possible.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-03-25 12:00:44 +01:00
..
2023-04-15 08:53:31 +01:00
2023-07-14 13:18:56 +02:00
2024-02-05 12:57:45 +01:00
2021-10-04 07:52:13 +02:00
2024-03-15 11:36:54 -07:00
2023-06-09 16:13:01 +01:00
2021-11-22 07:47:13 +00:00