media: uvcvideo: Refactor uvc_queue_streamon
authorRicardo Ribalda <ribalda@chromium.org>
Fri, 9 May 2025 18:24:14 +0000 (18:24 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Mon, 16 Jun 2025 06:43:23 +0000 (08:43 +0200)
commit7e666b1aaccadf7ba3ba8c0d0eed5bf876b14d8e
tree6f57c2f377ad5d14fa0771c503a87b584afca934
parent0aa112e4a880ff809ecd3426d9c7c9e1f4ad3826
media: uvcvideo: Refactor uvc_queue_streamon

Do uvc_pm_get before we call uvc_queue_streamon. Although the current
code is correct, uvc_ioctl_streamon is allways called after uvc_pm_get,
this change makes the code more resiliant to future changes.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20250509-uvc-followup-v1-2-73bcde30d2b5@chromium.org
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/usb/uvc/uvc_v4l2.c