mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-27 00:04:47 +08:00
812658d88d
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>
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
|
|
config VIDEO_AU0828
|
|
tristate "Auvitek AU0828 support"
|
|
depends on I2C && INPUT && DVB_CORE && USB && VIDEO_V4L2
|
|
select MEDIA_CONTROLLER
|
|
select MEDIA_CONTROLLER_DVB
|
|
select I2C_ALGOBIT
|
|
select VIDEO_TVEEPROM
|
|
select VIDEOBUF2_VMALLOC if VIDEO_V4L2
|
|
select DVB_AU8522_DTV if MEDIA_SUBDRV_AUTOSELECT
|
|
select MEDIA_TUNER_XC5000 if MEDIA_SUBDRV_AUTOSELECT
|
|
select MEDIA_TUNER_MXL5007T if MEDIA_SUBDRV_AUTOSELECT
|
|
select MEDIA_TUNER_TDA18271 if MEDIA_SUBDRV_AUTOSELECT
|
|
help
|
|
This is a hybrid analog/digital tv capture driver for
|
|
Auvitek's AU0828 USB device.
|
|
|
|
To compile this driver as a module, choose M here: the
|
|
module will be called au0828
|
|
|
|
config VIDEO_AU0828_V4L2
|
|
bool "Auvitek AU0828 v4l2 analog video support"
|
|
depends on VIDEO_AU0828
|
|
depends on VIDEO_V4L2=y || VIDEO_V4L2=VIDEO_AU0828
|
|
select DVB_AU8522_V4L if MEDIA_SUBDRV_AUTOSELECT
|
|
select VIDEO_TUNER
|
|
default y
|
|
help
|
|
This is a video4linux driver for Auvitek's USB device.
|
|
|
|
Choose Y here to include support for v4l2 analog video
|
|
capture within the au0828 driver.
|
|
|
|
config VIDEO_AU0828_RC
|
|
bool "AU0828 Remote Controller support"
|
|
depends on RC_CORE
|
|
depends on !(RC_CORE=m && VIDEO_AU0828=y)
|
|
depends on VIDEO_AU0828
|
|
help
|
|
Enables Remote Controller support on au0828 driver.
|