linux/drivers/media
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
..
cec media: cec: keep track of outstanding transmits 2018-11-23 05:56:14 -05:00
common media: vb2: be sure to unlock mutex on errors 2018-11-23 07:29:54 -05:00
dvb-core media: dvb_frontend: add debug message for frequency intervals 2018-11-23 11:59:45 -05:00
dvb-frontends media: dib0900: fix smatch warnings 2018-12-03 13:30:15 -05:00
firewire media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
i2c media: tda7432: fix spelling mistake "maximium" -> "maximum" 2018-12-03 14:44:54 -05:00
mmc media: siano: use GFP_DMA only for smssdio 2018-05-15 08:04:42 -04:00
pci media: saa7134: rc-core maintains users count, no need to duplicate 2018-12-03 13:22:46 -05:00
platform media: seco-cec: add missing header file to fix build 2018-12-03 15:11:00 -05:00
radio media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
rc media: rc: ensure close() is called on rc_unregister_device 2018-11-22 13:33:24 -05:00
spi media: cxd2880-spi: Add optional vcc regulator 2018-12-03 13:33:16 -05:00
tuners media: si2157: declare its own pads 2018-09-17 13:16:19 -04:00
usb media: uvcvideo: Abstract streaming object lifetime 2018-12-05 03:13:48 -05:00
v4l2-core media: v4l2-pci-skeleton: depend on CONFIG_SAMPLES 2018-12-03 14:42:22 -05:00
Kconfig media: cec: Kconfig coding style issue 2018-05-09 16:26:50 -04:00
Makefile media: media-request: implement media requests 2018-08-31 11:04:51 -04:00
media-device.c media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
media-devnode.c MAINTAINERS & files: Canonize the e-mails I use at files 2018-05-04 06:21:06 -04:00
media-entity.c media: v4l2-mc: switch it to use the new approach to setup pipelines 2018-09-17 13:16:19 -04:00
media-request.c media: media-request: EPERM -> EACCES/EBUSY 2018-09-11 09:57:29 -04:00