]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: uvcvideo: Make power management granular
authorRicardo Ribalda <ribalda@chromium.org>
Thu, 27 Mar 2025 21:05:30 +0000 (21:05 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 9 May 2025 13:29:12 +0000 (15:29 +0200)
commita32d9c41bdb86e09ce731aa5fd3add89ac2103a5
tree9deb161a822487a6bfc03f5bf2d22e03955802cd
parent10acb9101355484c3e4f2625003cd1b6c203cfe4
media: uvcvideo: Make power management granular

Now that every ioctl takes care of their power management we can remove
the "global" power management.

Despite its size, this is a relatively big change. We hope that there
are no size effects of it. If there are some specific devices that
miss-behave, we can add a small quirk for them.

This patch introduces a behavioral change for the uvc "trigger" button.
Before the "trigger" button would work as long as userspace has opened
/dev/videoX. Now it only works when the camera is actually streaming. We
consider that this the most common (if not the only) usecase and
therefore we do not think of this as a regression.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Message-ID: <20250327-uvc-granpower-ng-v6-4-35a2357ff348@chromium.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/usb/uvc/uvc_v4l2.c