]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: uvcvideo: Keep streaming state in the file handle
authorRicardo Ribalda <ribalda@chromium.org>
Thu, 27 Mar 2025 21:05:27 +0000 (21:05 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Fri, 9 May 2025 13:29:12 +0000 (15:29 +0200)
commit14f6e205e5599c2217b68c05b903ce162e7c1e27
tree7f74feff57b08a8f2511bd7b8d72a93f1aa50fa9
parentf8953ee959546ae8faaa20f405647e5aecc42614
media: uvcvideo: Keep streaming state in the file handle

Add a variable in the file handle state to figure out if a camera is in
the streaming state or not. This variable will be used in the future for
power management policies.

Now that we are at it, make use of guards to simplify the code.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Message-ID: <20250327-uvc-granpower-ng-v6-1-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
drivers/media/usb/uvc/uvcvideo.h