mbox series

[v3,0/7] uvcvideo: Fix handling of power_line_frequency

Message ID 20220607134405.166704-1-ribalda@chromium.org
Headers show
Series uvcvideo: Fix handling of power_line_frequency | expand

Message

Ricardo Ribalda June 7, 2022, 1:43 p.m. UTC
The uvc 1.5 standard recognizes 4 different values for this control, but we
were only using the first 3.

Also add a quirk for those devices that only support 50 and 60 Hz.

v3: Add more devices

v2: Thanks Laurent! 

Do not modify the behaviour of v1.1


Ricardo Ribalda (7):
  media: uvcvideo: Add missing value for power_line_frequency
  media: uvcvideo: Add UVC_QUIRK_LIMITED_POWERLINE
  media: uvcvideo: Add LIMITED_POWERLINE quirks for Quanta UVC Webcam
  media: uvcvideo: Add LIMITED_POWERLINE quirks for Chicony Easycamera
  media: uvcvideo: Add LIMITED_POWERLINE quirks for Chicony Easycamera
  media: uvcvideo: Add LIMITED_POWERLINE quirks for Quanta cameras
  media: uvcvideo: Add LIMITED_POWERLINE quirks for Acer EasyCamera

 drivers/media/usb/uvc/uvc_ctrl.c   | 91 ++++++++++++++++++++++++++----
 drivers/media/usb/uvc/uvc_driver.c | 63 +++++++++++++++++++++
 drivers/media/usb/uvc/uvcvideo.h   |  1 +
 3 files changed, 143 insertions(+), 12 deletions(-)