aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2018-11-09 09:26:10 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-05 03:13:48 -0500
commitece41454c6a5ed8f301ef1c37710ab222e577823 (patch)
tree8d6eca34fc8e00de9a68e947efe6628b9ff53695 /tools/perf/scripts/python/export-to-sqlite.py
parentmedia: uvcvideo: queue: Support asynchronous buffer handling (diff)
downloadlinux-ece41454c6a5ed8f301ef1c37710ab222e577823.tar.gz
linux-ece41454c6a5ed8f301ef1c37710ab222e577823.zip
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions