Skip to content

media: uvc: Probe PLF limits at start-up

Ricardo Ribalda linux-media lkml 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20240313-billion-5b2a45fa86f4

Versions newest first

  1. v2 Latest7 patches 6 repliesIn review
  2. v15 patches 10 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7media: uvcvideo: Allow custom control mappingdrivers/media/usb/uvc/uvc_ctrl.c drivers/media/usb/uvc/uvcvideo.h+14 -11 reply
2/7media: uvcvideo: Refactor Power Line Frequency limit selectiondrivers/media/usb/uvc/uvc_ctrl.c+55 -381 reply
3/7media: uvcvideo: Probe the PLF characteristicsdrivers/media/usb/uvc/uvc_ctrl.c+47 -51 reply
4/7media: uvcvideo: Cleanup version-specific mappingdrivers/media/usb/uvc/uvc_ctrl.c+0 -210 replies
5/7media: uvcvideo: Remove PLF device quirkingdrivers/media/usb/uvc/uvc_ctrl.c drivers/media/usb/uvc/uvc_driver.c drivers/media/usb/uvc/uvcvideo.h+2 -1261 reply
6/7media: uvcvideo: Remove mappings form uvc_device_infodrivers/media/usb/uvc/uvc_ctrl.c drivers/media/usb/uvc/uvcvideo.h+1 -271 reply
7/7media: uvcvideo: Replace get_mapping with filter_mappingdrivers/media/usb/uvc/uvc_ctrl.c drivers/media/usb/uvc/uvcvideo.h+21 -251 reply

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchSergey SenozhatskyLaurent Pinchart
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] media: uvc: Probe PLF limits at start-up

The UVC standard descries the values for the PLF control for its versions 1.1 and and 1.5, but it does not describe which values MUST be implemented.

So far, we have been adding "device quirks" to provide proper limits for the control, but this is failing to scale.

Add a function that during probe-time checks the capability of the control.

---
Changes in v2: Thanks Laurent
- Cleanup mapings from uvc_device_info
- Use __free()
- Implement filter_mapping
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Ricardo Ribalda (7):
media: uvcvideo: Allow custom control mapping
media: uvcvideo: Refactor Power Line Frequency limit selection
media: uvcvideo: Probe the PLF characteristics
media: uvcvideo: Cleanup version-specific mapping
media: uvcvideo: Remove PLF device quirking
media: uvcvideo: Remove mappings form uvc_device_info
media: uvcvideo: Replace get_mapping with filter_mapping

 drivers/media/usb/uvc/uvc_ctrl.c   | 191 ++++++++++++++++++++-----------------
 drivers/media/usb/uvc/uvc_driver.c | 122 -----------------------
 drivers/media/usb/uvc/uvcvideo.h   |   8 +-
 3 files changed, 109 insertions(+), 212 deletions(-)

---
base-commit: b14257abe7057def6127f6fb2f14f9adc8acabdb
change-id: 20240313-billion-5b2a45fa86f4

Best regards,

Signature · 1 line
Ricardo Ribalda <[email protected]>