diff options
author | Benjamin Gaignard <benjamin.gaignard@collabora.com> | 2024-03-14 18:32:21 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-03-25 14:00:44 +0300 |
commit | 6e423b75d0492e82fa6f057c615427ebd7ebe76c (patch) | |
tree | 87c3045393a3565f10c94355897103b1cf04b454 /include/media/media-device.h | |
parent | f5131d5ce49ef942a3bda5f4a0f6228b1ea40eee (diff) | |
download | linux-6e423b75d0492e82fa6f057c615427ebd7ebe76c.tar.xz |
media: core: Rework how create_buf index returned value is computed
When REMOVE_BUFS will be introduced holes could created in bufs array.
To be able to reuse these unused indices reworking how create->index
is set is mandatory.
Let __vb2_queue_alloc() decide which first index is correct and
forward this to the caller.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Acked-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'include/media/media-device.h')
0 files changed, 0 insertions, 0 deletions