linux_dsm_epyc7002/tools/testing/selftests/media_tests
Shuah Khan bc81c1c796 media: selftests: media_dev_allocator api test
Add a new test for Media Device Allocator API.

Media Device Allocator API to allows multiple drivers share a media device.
This API solves a very common use-case for media devices where one physical
device (an USB stick) provides both audio and video. When such media device
exposes a standard USB Audio class, a proprietary Video class, two or more
independent drivers will share a single physical USB bridge. In such cases,
it is necessary to coordinate access to the shared resource.

Using this API, drivers can allocate a media device with the shared struct
device as the key. Once the media device is allocated by a driver, other
drivers can get a reference to it. The media device is released when all
the references are released.

This test does a series of unbind/bind tests to make sure media device
is released correctly when it is no longer is use and when the last
driver releases the reference.

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:23:14 -04:00
..
.gitignore selftests: media_tests add a new video device test 2016-07-26 09:59:30 -06:00
bind_unbind_sample.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile selftests: media_tests: return Kselftest Skip code for skipped tests 2018-05-30 15:29:06 -06:00
media_dev_allocator.sh media: selftests: media_dev_allocator api test 2019-04-22 11:23:14 -04:00
media_device_open.c selftests: media_tests: return Kselftest Skip code for skipped tests 2018-05-30 15:29:06 -06:00
media_device_test.c selftests: media_tests: return Kselftest Skip code for skipped tests 2018-05-30 15:29:06 -06:00
open_loop_test.sh License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
regression_test.txt selftests: add media controller regression test scripts and document 2016-06-27 13:29:52 -06:00
video_device_test.c selftests: media_tests: Add SPDX license identifier 2018-01-12 11:46:56 -07:00