media: videodev2: Add flag to unconditionally enumerate pixel formats
authorBenjamin Gaignard <benjamin.gaignard@collabora.com>
Mon, 26 Aug 2024 17:24:09 +0000 (17:24 +0000)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 12 Oct 2024 17:56:16 +0000 (19:56 +0200)
commit06f5531958dd5decaabb21c6fa1da3dcaf8dfc24
tree9caead2ef6f2487c3f328b25b70dd7944754e1c2
parent0567d0f1cc624e6055661ab9b63877f3b5e54e5a
media: videodev2: Add flag to unconditionally enumerate pixel formats

When the index is ORed with V4L2_FMTDESC_FLAG_ENUM_ALL the
driver clears the flag and enumerate all the possible formats,
ignoring any limitations from the current configuration.
Drivers which do not support this flag yet always return an EINVAL.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
[hverkuil: improved doc when the new flag is not supported by the driver]
Documentation/userspace-api/media/v4l/vidioc-enum-fmt.rst
Documentation/userspace-api/media/videodev2.h.rst.exceptions
include/uapi/linux/videodev2.h