[PATCH] v4l2: Add support for interpreting remaining fields in VIDIOC_ENUMINPUT struct v4l2_input
Dmitry V. Levin
ldv at altlinux.org
Mon Jan 31 23:41:36 UTC 2022
On Fri, Jan 28, 2022 at 04:49:37AM +0100, Marek Vasut wrote:
> Interpret $audioset as flags, $tuner as integer. Add ID list for
> v4l2_std_id. Add flags for status and capabilities and interpret
> them.
>
> This is based off Linux 5.15.y:
> https://www.kernel.org/doc/html/v5.15/userspace-api/media/v4l/vidioc-enuminput.html
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> ---
> src/v4l2.c | 16 ++++++++++++++
> src/xlat/v4l2_input_capabilities_flags.in | 4 ++++
> src/xlat/v4l2_input_status_flags.in | 16 ++++++++++++++
> src/xlat/v4l2_std_ids.in | 27 +++++++++++++++++++++++
> 4 files changed, 63 insertions(+)
> create mode 100644 src/xlat/v4l2_input_capabilities_flags.in
> create mode 100644 src/xlat/v4l2_input_status_flags.in
> create mode 100644 src/xlat/v4l2_std_ids.in
Thanks for the patch. Unfortunately, it doesn't pass the test suite:
FAIL: ioctl_v4l2-success.gen
FAIL: ioctl_v4l2-success-Xabbrev.gen
FAIL: ioctl_v4l2-success-Xraw.gen
FAIL: ioctl_v4l2-success-Xverbose.gen
FAIL: ioctl_v4l2-success-v.gen
FAIL: ioctl_v4l2-success-v-Xabbrev.gen
FAIL: ioctl_v4l2-success-v-Xraw.gen
FAIL: ioctl_v4l2-success-v-Xverbose.gen
Please update tests/ioctl_v4l2-success.c and make sure it passes
the test suite. Thanks,
--
ldv
More information about the Strace-devel
mailing list