[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210315173609.1547857-1-ribalda@chromium.org>
Date: Mon, 15 Mar 2021 18:35:58 +0100
From: Ricardo Ribalda <ribalda@...omium.org>
To: Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Hans Verkuil <hverkuil-cisco@...all.nl>,
Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Ricardo Ribalda <ribalda@...omium.org>
Subject: [PATCH v4 00/11] uvcvideo: Fix v4l2-compliance errors
v4l2-compliance -m /dev/media0 -a -f
Total for uvcvideo device /dev/media0: 8, Succeeded: 6, Failed: 2, Warnings: 0
Total for uvcvideo device /dev/video0: 54, Succeeded: 50, Failed: 4, Warnings: 2
Total for uvcvideo device /dev/video1: 46, Succeeded: 46, Failed: 0, Warnings: 0
Grand Total for uvcvideo device /dev/media0: 108, Succeeded: 102,
Failed: 6, Warnings: 2
After fixing all of them we go down to:
Total for uvcvideo device /dev/media0: 8, Succeeded: 8, Failed: 0, Warnings: 0
Total for uvcvideo device /dev/video0: 54, Succeeded: 54, Failed: 0, Warnings: 3
Total for uvcvideo device /dev/video1: 46, Succeeded: 46, Failed: 0, Warnings: 0
Grand Total for uvcvideo device /dev/media0: 108, Succeeded: 108,
Failed: 0, Warnings: 3
With Hans patch we can also pass v4l2-compliance -s, but it is a WIP.
Changelog v3 (Thanks to Hans and Laurent)
- Return -EACCES on inactive controls
- Change unique name of the entities
- Increase metadata buffer size
Hans Verkuil (1):
uvc: use vb2 ioctl and fop helpers
Ricardo Ribalda (10):
media: v4l2-ioctl: Fix check_ext_ctrls
media: uvcvideo: Set capability in s_param
media: uvcvideo: Return -EIO for control errors
media: uvcvideo: set error_idx to count on EACCESS
media: uvcvideo: refactor __uvc_ctrl_add_mapping
media: uvcvideo: Add support for V4L2_CTRL_TYPE_CTRL_CLASS
media: uvcvideo: Use dev->name for querycap()
media: uvcvideo: Set unique vdev name based in type
media: uvcvideo: Increase the size of UVC_METADATA_BUF_SIZE
media: uvcvideo: Return -EACCES to inactive controls
drivers/media/usb/uvc/uvc_ctrl.c | 154 +++++++++++++--
drivers/media/usb/uvc/uvc_driver.c | 22 ++-
drivers/media/usb/uvc/uvc_metadata.c | 8 +-
drivers/media/usb/uvc/uvc_queue.c | 131 -------------
drivers/media/usb/uvc/uvc_v4l2.c | 283 +++------------------------
drivers/media/usb/uvc/uvc_video.c | 5 +
drivers/media/usb/uvc/uvcvideo.h | 36 +---
drivers/media/v4l2-core/v4l2-ioctl.c | 25 ++-
8 files changed, 210 insertions(+), 454 deletions(-)
--
2.31.0.rc2.261.g7f71774620-goog
Powered by blists - more mailing lists