[PATCH] v4l2: Add support for interpreting remaining fields in VIDIOC_ENUMINPUT struct v4l2_input

Marek Vasut marex at denx.de
Fri Feb 25 06:09:02 UTC 2022


On 2/1/22 00:41, Dmitry V. Levin wrote:
> 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

I wasn't even aware of the testsuite, hum, I sent V2 which passes make 
check now.


More information about the Strace-devel mailing list