aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/Kconfig
diff options
context:
space:
mode:
authorShuah Khan <shuah@kernel.org>2019-04-01 20:40:20 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-04-22 11:19:05 -0400
commit812658d88d26721079fb76afb037669b9c280028 (patch)
tree16a1c2ad1c31751a9ce551d170006ab2ec8374cb /sound/usb/Kconfig
parentmedia: Media Device Allocator API (diff)
downloadlinux-dev-812658d88d26721079fb76afb037669b9c280028.tar.xz
linux-dev-812658d88d26721079fb76afb037669b9c280028.zip
media: change au0828 to use 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. Change au0828 to use Media Device Allocator API to allocate media device with the parent usb struct device as the key, so it can be shared with the snd_usb_audio driver. 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 'sound/usb/Kconfig')
0 files changed, 0 insertions, 0 deletions