linux/drivers/media/usb
Shuah Khan 383b0e5b6e media: au0828: fix enable and disable source audio and video inconsistencies
Enable and disable source interfaces aren't consistent in enforcing
how video and audio share the tuner resource.

Fix these issues to enforce the following rules and allow
sharing between audio and video applications.

- When DVB is streaming, audio/video/vbi/s-video/composite
  should find the resource busy. DVB holds the tuner in
  exclusive mode.
- When video/VBI is streaming, audio can share the tuner and vice versa.
- v4l2 allows multiple applications to open video device.
- Video applications call enable source multiple times during their
  run-time. Resource should stay locked until the last application
  releases it.
- A shared resource should stay in shared state and locked when it is
  in use by audio and video. More than one video application is allowed
  to use the tuner as long as video streaming protocol allows such usage.
  Resource is released when the last video/audio application releases it.
- S-Video and Composite hold the resource in exclusive mode.

Signed-off-by: Shuah Khan <shuah@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-04-22 11:22:30 -04:00
..
airspy media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
as102 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
au0828 media: au0828: fix enable and disable source audio and video inconsistencies 2019-04-22 11:22:30 -04:00
b2c2 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
cpia2 media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
cx231xx media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
dvb-usb media: usb: fix several typos 2019-03-01 09:43:27 -05:00
dvb-usb-v2 media: dvb: Add support for the Avermedia TD310 2019-03-19 16:52:51 -04:00
em28xx media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
go7007 media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
gspca media: gspca: Kill URBs on USB device disconnect 2019-03-29 07:34:32 -04:00
hackrf media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
hdpvr media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
msi2500 media updates for v4.20-rc1 2018-10-31 10:53:29 -07:00
pulse8-cec media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
pvrusb2 media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
pwc media: pwc-ctl: pChoose can't be NULL 2019-03-25 18:02:27 -04:00
rainshadow-cec media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
s2255 media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
siano media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
stk1160 media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
stkwebcam media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
tm6000 media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
ttusb-budget media: usb: fix several typos 2019-03-01 09:43:27 -05:00
ttusb-dec media: usb: fix several typos 2019-03-01 09:43:27 -05:00
usbtv media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
usbvision media: usbvision: fix a potential NULL pointer dereference 2019-03-29 07:42:56 -04:00
uvc media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
zr364xx media: Kconfig files: use the right help coding style 2019-03-20 06:47:51 -04:00
Kconfig [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00