2019-05-19 20:07:45 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
media: Kconfig: better support hybrid TV devices
Right now, if one has an hybrid TV card, it has to select
both analog and digital TV support, as otherwise the needed
core support won't be selected.
Change the logic to auto-select the core support for those
drivers, as this is a way more intuitive.
It should be noticed that, as now both DVB_CORE and VIDEO_DEV
defaults depends on selecting a hybrid cards, we had to remove
the explicit dependencies there, in order to avoid circular
dependencies.
That requires some tricks:
1) the prompt should not be not visible when an hybrid card
is selected, as the user shold not change it.
2) When a media hybrid device is selected, the modular
option for DVB_CORE and VIDEO_DEV will follow the
MEDIA_SUPPORT dependency, as we can't have a core
built with "y" with a driver built as module.
Note: while here, moved two pure V4L2 PCI drivers out of the
"hybrid" part of config and consider pvrusb2 as an hybrid
device.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-03-25 15:36:36 +08:00
|
|
|
|
|
|
|
# Should match the hybrid card list below
|
|
|
|
config MEDIA_HYBRID_PCI
|
|
|
|
bool
|
|
|
|
depends on VIDEO_CX18 || VIDEO_CX23885 || VIDEO_CX88 || VIDEO_BT848 || VIDEO_SAA7134 || VIDEO_SAA7164
|
|
|
|
default y
|
|
|
|
|
2020-03-26 22:47:25 +08:00
|
|
|
if PCI
|
2013-05-22 22:25:52 +08:00
|
|
|
|
2012-08-20 21:47:00 +08:00
|
|
|
menuconfig MEDIA_PCI_SUPPORT
|
|
|
|
bool "Media PCI Adapters"
|
2012-08-21 19:16:28 +08:00
|
|
|
help
|
|
|
|
Enable media drivers for PCI/PCIe bus.
|
|
|
|
If you have such devices, say Y.
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2012-08-20 21:47:00 +08:00
|
|
|
if MEDIA_PCI_SUPPORT
|
2012-08-15 01:50:53 +08:00
|
|
|
|
|
|
|
if MEDIA_CAMERA_SUPPORT
|
|
|
|
comment "Media capture support"
|
|
|
|
source "drivers/media/pci/meye/Kconfig"
|
2015-06-19 18:20:40 +08:00
|
|
|
source "drivers/media/pci/solo6x10/Kconfig"
|
2012-08-15 01:50:53 +08:00
|
|
|
source "drivers/media/pci/sta2x11/Kconfig"
|
2016-07-20 21:07:12 +08:00
|
|
|
source "drivers/media/pci/tw5864/Kconfig"
|
2015-06-19 18:20:40 +08:00
|
|
|
source "drivers/media/pci/tw68/Kconfig"
|
2016-03-02 22:30:16 +08:00
|
|
|
source "drivers/media/pci/tw686x/Kconfig"
|
2012-08-15 01:50:53 +08:00
|
|
|
endif
|
2012-08-14 23:13:30 +08:00
|
|
|
|
|
|
|
if MEDIA_ANALOG_TV_SUPPORT
|
|
|
|
comment "Media capture/analog TV support"
|
|
|
|
source "drivers/media/pci/ivtv/Kconfig"
|
2012-08-14 23:53:09 +08:00
|
|
|
source "drivers/media/pci/saa7146/Kconfig"
|
2015-04-25 23:36:18 +08:00
|
|
|
source "drivers/media/pci/dt3155/Kconfig"
|
media: Kconfig: better support hybrid TV devices
Right now, if one has an hybrid TV card, it has to select
both analog and digital TV support, as otherwise the needed
core support won't be selected.
Change the logic to auto-select the core support for those
drivers, as this is a way more intuitive.
It should be noticed that, as now both DVB_CORE and VIDEO_DEV
defaults depends on selecting a hybrid cards, we had to remove
the explicit dependencies there, in order to avoid circular
dependencies.
That requires some tricks:
1) the prompt should not be not visible when an hybrid card
is selected, as the user shold not change it.
2) When a media hybrid device is selected, the modular
option for DVB_CORE and VIDEO_DEV will follow the
MEDIA_SUPPORT dependency, as we can't have a core
built with "y" with a driver built as module.
Note: while here, moved two pure V4L2 PCI drivers out of the
"hybrid" part of config and consider pvrusb2 as an hybrid
device.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-03-25 15:36:36 +08:00
|
|
|
source "drivers/media/pci/cx25821/Kconfig"
|
|
|
|
source "drivers/media/pci/cobalt/Kconfig"
|
2012-08-14 23:13:30 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
if MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT
|
|
|
|
comment "Media capture/analog/hybrid TV support"
|
|
|
|
source "drivers/media/pci/cx18/Kconfig"
|
|
|
|
source "drivers/media/pci/cx23885/Kconfig"
|
|
|
|
source "drivers/media/pci/cx88/Kconfig"
|
|
|
|
source "drivers/media/pci/bt8xx/Kconfig"
|
|
|
|
source "drivers/media/pci/saa7134/Kconfig"
|
|
|
|
source "drivers/media/pci/saa7164/Kconfig"
|
2012-08-14 23:53:09 +08:00
|
|
|
|
2012-08-14 23:13:30 +08:00
|
|
|
endif
|
2007-05-04 02:59:37 +08:00
|
|
|
|
2012-08-14 23:13:30 +08:00
|
|
|
if MEDIA_DIGITAL_TV_SUPPORT
|
|
|
|
comment "Media digital TV PCI Adapters"
|
2012-06-15 03:35:57 +08:00
|
|
|
source "drivers/media/pci/ttpci/Kconfig"
|
|
|
|
source "drivers/media/pci/b2c2/Kconfig"
|
|
|
|
source "drivers/media/pci/pluto2/Kconfig"
|
|
|
|
source "drivers/media/pci/dm1105/Kconfig"
|
|
|
|
source "drivers/media/pci/pt1/Kconfig"
|
2014-09-09 01:20:43 +08:00
|
|
|
source "drivers/media/pci/pt3/Kconfig"
|
2012-06-15 03:35:58 +08:00
|
|
|
source "drivers/media/pci/mantis/Kconfig"
|
|
|
|
source "drivers/media/pci/ngene/Kconfig"
|
|
|
|
source "drivers/media/pci/ddbridge/Kconfig"
|
2014-10-08 15:31:10 +08:00
|
|
|
source "drivers/media/pci/smipcie/Kconfig"
|
2015-07-28 22:33:04 +08:00
|
|
|
source "drivers/media/pci/netup_unidvb/Kconfig"
|
2012-08-14 23:13:30 +08:00
|
|
|
endif
|
2011-07-04 05:25:29 +08:00
|
|
|
|
2017-11-09 08:30:38 +08:00
|
|
|
source "drivers/media/pci/intel/ipu3/Kconfig"
|
|
|
|
|
2020-03-24 17:05:18 +08:00
|
|
|
config VIDEO_PCI_SKELETON
|
|
|
|
tristate "Skeleton PCI V4L2 driver"
|
|
|
|
depends on SAMPLES
|
2020-03-26 22:47:25 +08:00
|
|
|
depends on MEDIA_TEST_SUPPORT
|
|
|
|
depends on PCI && VIDEO_V4L2
|
|
|
|
select VIDEOBUF2_MEMOPS
|
|
|
|
select VIDEOBUF2_DMA_CONTIG
|
2020-03-24 17:05:18 +08:00
|
|
|
help
|
|
|
|
Enable build of the skeleton PCI driver, used as a reference
|
|
|
|
when developing new drivers.
|
|
|
|
|
2012-08-20 21:47:00 +08:00
|
|
|
endif #MEDIA_PCI_SUPPORT
|
2013-05-22 22:25:52 +08:00
|
|
|
endif #PCI
|