original_kernel/drivers/media
Hans Verkuil b32431b753 media: vb2: refactor setting flags and caps, fix missing cap
Several functions implementing VIDIOC_REQBUFS and _CREATE_BUFS all use
almost the same code to fill in the flags and capability fields. Refactor
this into a new vb2_set_flags_and_caps() function that replaces the old
fill_buf_caps() and validate_memory_flags() functions.

This also fixes a bug where vb2_ioctl_create_bufs() would not set the
V4L2_BUF_CAP_SUPPORTS_MAX_NUM_BUFFERS cap and also not fill in the
max_num_buffers field.

Fixes: d055a76c00 ("media: core: Report the maximum possible number of buffers for the queue")
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Acked-by: Tomasz Figa <tfiga@chromium.org>
2024-01-24 17:27:51 +01:00
..
cec
common media: vb2: refactor setting flags and caps, fix missing cap 2024-01-24 17:27:51 +01:00
dvb-core
dvb-frontends
firewire
i2c media: i2c: thp7312: select CONFIG_FW_LOADER 2024-01-11 18:43:04 +01:00
mc
mmc
pci media: solo6x10: replace max(a, min(b, c)) by clamp(b, a, c) 2024-01-20 13:30:00 -08:00
platform media: chips-media: wave5: Remove K3 References 2024-01-24 17:27:51 +01:00
radio
rc pwm: Changes for v6.8-rc1 2024-01-12 14:59:50 -08:00
spi
test-drivers media updates for v6.8-rc1 2024-01-12 14:29:48 -08:00
tuners
usb
v4l2-core
Kconfig
Makefile