diff options
author | Benjamin Gaignard <benjamin.gaignard@collabora.com> | 2024-03-14 18:32:22 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-03-25 14:00:44 +0300 |
commit | a286b0837e1390c558aabebc4f10b25b1f05bdce (patch) | |
tree | 59b319c91e67814ead79c1b78e6ce6a11769729d /include/media/media-device.h | |
parent | 6e423b75d0492e82fa6f057c615427ebd7ebe76c (diff) | |
download | linux-a286b0837e1390c558aabebc4f10b25b1f05bdce.tar.xz |
media: core: Add bitmap manage bufs array entries
Add a bitmap field to know which of bufs array entries are
used or not.
Remove no more used num_buffers field from queue structure.
Use bitmap_find_next_zero_area() to find the first possible
range when creating new buffers to fill the gaps.
If no suitable range is found try to allocate less buffers
than requested.
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