2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-01 10:13:58 +08:00
linux-next/drivers/media/usb/uvc
Kieran Bingham ece41454c6 media: uvcvideo: Abstract streaming object lifetime
The streaming object is a key part of handling the UVC device. Although
not critical, we are currently missing a call to destroy the mutex on
clean up paths, and we are due to extend the objects complexity in the
near future.

Facilitate easy management of a stream object by creating a pair of
functions to handle creating and destroying the allocation. The new
uvc_stream_delete() function also performs the missing mutex_destroy()
operation.

Previously a failed streaming object allocation would cause
uvc_parse_streaming() to return -EINVAL, which is inappropriate. If the
constructor failes, we will instead return -ENOMEM.

While we're here, fix the trivial spelling error in the function banner
of uvc_delete().

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-12-05 03:13:48 -05:00
..
Kconfig [media] uvc: Depend on VIDEO_V4L2 2013-06-24 22:54:40 -03:00
Makefile media: uvcvideo: Add a metadata device node 2018-01-04 06:41:47 -05:00
uvc_ctrl.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
uvc_debugfs.c media: uvcvideo: Remove unnecessary NULL check before debugfs_remove_recursive 2018-09-11 08:42:10 -04:00
uvc_driver.c media: uvcvideo: Abstract streaming object lifetime 2018-12-05 03:13:48 -05:00
uvc_entity.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
uvc_isight.c media: uvcvideo: Convert decode functions to use new context structure 2018-12-05 03:07:41 -05:00
uvc_metadata.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
uvc_queue.c media: uvcvideo: queue: Support asynchronous buffer handling 2018-12-05 03:12:09 -05:00
uvc_status.c media: uvcvideo: Refactor teardown of uvc on USB disconnect 2018-12-03 14:16:02 -05:00
uvc_v4l2.c media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
uvc_video.c media: uvcvideo: Protect queue internals with helper 2018-12-05 03:10:06 -05:00
uvcvideo.h media: uvcvideo: queue: Support asynchronous buffer handling 2018-12-05 03:12:09 -05:00