aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/media_tests/media_dev_allocator.sh
diff options
context:
space:
mode:
authorShuah Khan <shuah@kernel.org>2019-04-01 20:40:23 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-04-22 11:22:30 -0400
commit383b0e5b6ebb087bde22fbb5fcd9d567c5dbdb92 (patch)
tree459d315505058d8d27485728b60996529a757a0a /tools/testing/selftests/media_tests/media_dev_allocator.sh
parentmedia: sound/usb: Use Media Controller API to share media resources (diff)
downloadlinux-dev-383b0e5b6ebb087bde22fbb5fcd9d567c5dbdb92.tar.xz
linux-dev-383b0e5b6ebb087bde22fbb5fcd9d567c5dbdb92.zip
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>
Diffstat (limited to 'tools/testing/selftests/media_tests/media_dev_allocator.sh')
0 files changed, 0 insertions, 0 deletions