linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/8] Show privacy_gpio as a v4l2_ctrl
@ 2020-11-19 21:50 Ricardo Ribalda
  2020-11-19 21:50 ` [PATCH v3 1/8] media: uvcvideo: Move guid to entity Ricardo Ribalda
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Ricardo Ribalda @ 2020-11-19 21:50 UTC (permalink / raw)
  To: Laurent Pinchart, Mauro Carvalho Chehab, linux-media, linux-kernel
  Cc: Ricardo Ribalda

Some devices can implement a physical switch to disable the input of the
camera on demand. Think of it like an elegant privacy sticker.

The system can read the status of the privacy switch via a GPIO.

The ACPI table maps this GPIO to the USB device via _CRS and _DSD
descriptors, so the kernel can find it.

The userspace applications need to know if the privacy pin is enabled
or not.

The obvious way to show it to userspace is via the V4L2_CID_PRIVACY control.

This patchset implement this functionality.

v2: Thanks to all the comments from Joe Perches
- Rework of printk macros

v2: Thanks to all the comments from Laurent!

- move guid to unit
- support entities with no pads
- CodeStyle
- Irq handling
- pr_cont
- new ids

Ricardo Ribalda (8):
  media: uvcvideo: Move guid to entity
  media: uvcvideo: Allow external entities
  media: uvcvideo: Allow entities with no pads
  media: uvcvideo: Entity defined get_info and get_cur
  media: uvcvideo: Implement UVC_EXT_GPIO_UNIT
  media: uvcvideo: Add Privacy control based on EXT_GPIO
  media: uvcvideo: Use dev_ printk aliases
  media: uvcvideo: New macro uvc_trace_cont

 drivers/media/usb/uvc/uvc_ctrl.c   |  80 +++++----
 drivers/media/usb/uvc/uvc_driver.c | 249 +++++++++++++++++++++--------
 drivers/media/usb/uvc/uvc_entity.c |  10 +-
 drivers/media/usb/uvc/uvc_status.c |  13 +-
 drivers/media/usb/uvc/uvc_video.c  |  51 +++---
 drivers/media/usb/uvc/uvcvideo.h   |  52 ++++--
 6 files changed, 309 insertions(+), 146 deletions(-)

-- 
2.29.2.299.gdc1121823c-goog


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

end of thread, other threads:[~2020-11-19 21:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-19 21:50 [PATCH v3 0/8] Show privacy_gpio as a v4l2_ctrl Ricardo Ribalda
2020-11-19 21:50 ` [PATCH v3 1/8] media: uvcvideo: Move guid to entity Ricardo Ribalda
2020-11-19 21:50 ` [PATCH v3 2/8] media: uvcvideo: Allow external entities Ricardo Ribalda
2020-11-19 21:50 ` [PATCH v3 3/8] media: uvcvideo: Allow entities with no pads Ricardo Ribalda
2020-11-19 21:50 ` [PATCH v3 4/8] media: uvcvideo: Entity defined get_info and get_cur Ricardo Ribalda
2020-11-19 21:50 ` [PATCH v3 5/8] media: uvcvideo: Implement UVC_EXT_GPIO_UNIT Ricardo Ribalda
2020-11-19 21:50 ` [PATCH v3 6/8] media: uvcvideo: Add Privacy control based on EXT_GPIO Ricardo Ribalda
2020-11-19 21:50 ` [PATCH v3 7/8] media: uvcvideo: Use dev_ printk aliases Ricardo Ribalda
2020-11-19 21:50 ` [PATCH v3 8/8] media: uvcvideo: New macro uvc_trace_cont Ricardo Ribalda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).