public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/8] Follow-up patches for uvc v4l2-compliance
@ 2023-01-03 14:36 Ricardo Ribalda
  2023-01-03 14:36 ` [PATCH v3 1/8] media: uvcvideo: Check for INACTIVE in uvc_ctrl_is_accessible() Ricardo Ribalda
                   ` (8 more replies)
  0 siblings, 9 replies; 20+ messages in thread
From: Ricardo Ribalda @ 2023-01-03 14:36 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Laurent Pinchart
  Cc: Hans Verkuil, linux-media, linux-kernel, Ricardo Ribalda,
	Hans Verkuil, Hans Verkuil

This patchset contains the fixes for the comments on "v10 of Fix
v4l2-compliance errors series". In particular to the patches

-uvcvideo: uvc_ctrl_is_accessible: check for INACTIVE
-uvcvideo: improve error handling in uvc_query_ctrl()

And the patch:
-uvcvideo: Fix handling on Bitmask controls

To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>

---
Changes in v3 (Thanks Laurent):
- Add a new patch for refactoring __uvc_ctrl_add_mapping
- Use standard names for menus
  - Return error on uvc_mapping_get_menu_value
  - Add const
  - StyLe!
- Do not return positive errors in uvc_query_ctrl()
   - Improve commit message
- improve error logging in uvc_query_ctrl()
   - Fix comment
   - Improve doc
- Fix handling on Bitmask controls
   - s/uvc/UVC
   - Reflow comments to 80 chars
   - Test with GET_RES first
   - Remove clamp to (0,..)
- Return -EACCES for Wrong state error
   - Full rewrite of commit message
- uvc_ctrl_is_accessible: check for INACTIVE
   - Update commit message
   - Remove try variable
   - Update documentation
- Implement mask for V4L2_CTRL_TYPE_MENU
   - Include linux/bits.h
- Link to v2: https://lore.kernel.org/r/20220920-resend-v4l2-compliance-v2-0-7c0942040004@chromium.org

Changes in v2:
- Include "Get menu names from framework series"
  https://lore.kernel.org/r/20220920-standard-menues-v2-0-a35af3243c2f@chromium.org
- Link to v1: https://lore.kernel.org/r/20220920-resend-v4l2-compliance-v1-0-81364c15229b@chromium.org

---
Hans Verkuil (2):
      media: uvcvideo: Check for INACTIVE in uvc_ctrl_is_accessible()
      media: uvcvideo: improve error logging in uvc_query_ctrl()

Ricardo Ribalda (6):
      media: uvcvideo: Return -EACCES for Wrong state error
      media: uvcvideo: Do not return positive errors in uvc_query_ctrl()
      media: uvcvideo: Fix handling on Bitmask controls
      media: uvcvideo: Implement mask for V4L2_CTRL_TYPE_MENU
      media: uvcvideo: Refactor __uvc_ctrl_add_mapping
      media: uvcvideo: Use standard names for menus

 drivers/media/usb/uvc/uvc_ctrl.c   | 238 ++++++++++++++++++++++++++++---------
 drivers/media/usb/uvc/uvc_driver.c |  10 +-
 drivers/media/usb/uvc/uvc_v4l2.c   | 108 ++++++++++++-----
 drivers/media/usb/uvc/uvc_video.c  |  15 +--
 drivers/media/usb/uvc/uvcvideo.h   |   8 +-
 include/uapi/linux/uvcvideo.h      |   4 +-
 6 files changed, 281 insertions(+), 102 deletions(-)
---
base-commit: 69b41ac87e4a664de78a395ff97166f0b2943210
change-id: 20220920-resend-v4l2-compliance-4fdbe4fbd7b5

Best regards,
-- 
Ricardo Ribalda <ribalda@chromium.org>

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2023-01-12 22:25 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-03 14:36 [PATCH v3 0/8] Follow-up patches for uvc v4l2-compliance Ricardo Ribalda
2023-01-03 14:36 ` [PATCH v3 1/8] media: uvcvideo: Check for INACTIVE in uvc_ctrl_is_accessible() Ricardo Ribalda
2023-01-12 22:12   ` Laurent Pinchart
2023-01-03 14:36 ` [PATCH v3 2/8] media: uvcvideo: improve error logging in uvc_query_ctrl() Ricardo Ribalda
2023-01-03 20:13   ` Laurent Pinchart
2023-01-03 20:15     ` Ricardo Ribalda
2023-01-12 22:21   ` Laurent Pinchart
2023-01-03 14:36 ` [PATCH v3 3/8] media: uvcvideo: Return -EACCES for Wrong state error Ricardo Ribalda
2023-01-03 14:36 ` [PATCH v3 4/8] media: uvcvideo: Do not return positive errors in uvc_query_ctrl() Ricardo Ribalda
2023-01-03 14:36 ` [PATCH v3 5/8] media: uvcvideo: Fix handling on Bitmask controls Ricardo Ribalda
2023-01-03 20:17   ` Laurent Pinchart
2023-01-03 14:36 ` [PATCH v3 6/8] media: uvcvideo: Implement mask for V4L2_CTRL_TYPE_MENU Ricardo Ribalda
2023-01-05 11:17   ` Ricardo Ribalda
2023-01-03 14:36 ` [PATCH v3 7/8] media: uvcvideo: Refactor __uvc_ctrl_add_mapping Ricardo Ribalda
2023-01-03 20:22   ` Laurent Pinchart
2023-01-03 14:36 ` [PATCH v3 8/8] media: uvcvideo: Use standard names for menus Ricardo Ribalda
2023-01-03 20:46   ` Laurent Pinchart
2023-01-04 18:31   ` kernel test robot
2023-01-03 20:53 ` [PATCH v3 0/8] Follow-up patches for uvc v4l2-compliance Laurent Pinchart
2023-01-03 20:54   ` Ricardo Ribalda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox