2019-05-19 19:07:45 +07: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 14:36:36 +07:00
|
|
|
|
2020-03-26 21:47:25 +07:00
|
|
|
if PCI
|
2013-05-22 21:25:52 +07:00
|
|
|
|
2012-08-20 20:47:00 +07:00
|
|
|
menuconfig MEDIA_PCI_SUPPORT
|
|
|
|
bool "Media PCI Adapters"
|
2012-08-21 18:16:28 +07:00
|
|
|
help
|
|
|
|
Enable media drivers for PCI/PCIe bus.
|
|
|
|
If you have such devices, say Y.
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2012-08-20 20:47:00 +07:00
|
|
|
if MEDIA_PCI_SUPPORT
|
2012-08-15 00:50:53 +07:00
|
|
|
|
|
|
|
if MEDIA_CAMERA_SUPPORT
|
|
|
|
comment "Media capture support"
|
|
|
|
source "drivers/media/pci/meye/Kconfig"
|
2015-06-19 17:20:40 +07:00
|
|
|
source "drivers/media/pci/solo6x10/Kconfig"
|
2012-08-15 00:50:53 +07:00
|
|
|
source "drivers/media/pci/sta2x11/Kconfig"
|
2016-07-20 20:07:12 +07:00
|
|
|
source "drivers/media/pci/tw5864/Kconfig"
|
2015-06-19 17:20:40 +07:00
|
|
|
source "drivers/media/pci/tw68/Kconfig"
|
2016-03-02 21:30:16 +07:00
|
|
|
source "drivers/media/pci/tw686x/Kconfig"
|
2012-08-15 00:50:53 +07:00
|
|
|
endif
|
2012-08-14 22:13:30 +07:00
|
|
|
|
|
|
|
if MEDIA_ANALOG_TV_SUPPORT
|
|
|
|
comment "Media capture/analog TV support"
|
|
|
|
source "drivers/media/pci/ivtv/Kconfig"
|
2012-08-14 22:53:09 +07:00
|
|
|
source "drivers/media/pci/saa7146/Kconfig"
|
2015-04-25 22:36:18 +07:00
|
|
|
source "drivers/media/pci/dt3155/Kconfig"
|
2012-08-14 22:13:30 +07: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"
|
2020-04-14 16:00:30 +07:00
|
|
|
source "drivers/media/pci/cx25821/Kconfig"
|
2012-08-14 22:13:30 +07:00
|
|
|
source "drivers/media/pci/cx88/Kconfig"
|
|
|
|
source "drivers/media/pci/bt8xx/Kconfig"
|
|
|
|
source "drivers/media/pci/saa7134/Kconfig"
|
|
|
|
source "drivers/media/pci/saa7164/Kconfig"
|
2020-04-14 16:00:30 +07:00
|
|
|
source "drivers/media/pci/cobalt/Kconfig"
|
2012-08-14 22:53:09 +07:00
|
|
|
|
2012-08-14 22:13:30 +07:00
|
|
|
endif
|
2007-05-04 01:59:37 +07:00
|
|
|
|
2012-08-14 22:13:30 +07:00
|
|
|
if MEDIA_DIGITAL_TV_SUPPORT
|
|
|
|
comment "Media digital TV PCI Adapters"
|
2012-06-15 02:35:57 +07: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 00:20:43 +07:00
|
|
|
source "drivers/media/pci/pt3/Kconfig"
|
2012-06-15 02:35:58 +07:00
|
|
|
source "drivers/media/pci/mantis/Kconfig"
|
|
|
|
source "drivers/media/pci/ngene/Kconfig"
|
|
|
|
source "drivers/media/pci/ddbridge/Kconfig"
|
2014-10-08 14:31:10 +07:00
|
|
|
source "drivers/media/pci/smipcie/Kconfig"
|
2015-07-28 21:33:04 +07:00
|
|
|
source "drivers/media/pci/netup_unidvb/Kconfig"
|
2012-08-14 22:13:30 +07:00
|
|
|
endif
|
2011-07-04 04:25:29 +07:00
|
|
|
|
2017-11-09 07:30:38 +07:00
|
|
|
source "drivers/media/pci/intel/ipu3/Kconfig"
|
|
|
|
|
2020-03-24 16:05:18 +07:00
|
|
|
config VIDEO_PCI_SKELETON
|
|
|
|
tristate "Skeleton PCI V4L2 driver"
|
|
|
|
depends on SAMPLES
|
2020-03-26 21:47:25 +07:00
|
|
|
depends on MEDIA_TEST_SUPPORT
|
|
|
|
depends on PCI && VIDEO_V4L2
|
|
|
|
select VIDEOBUF2_MEMOPS
|
|
|
|
select VIDEOBUF2_DMA_CONTIG
|
2020-03-24 16:05:18 +07:00
|
|
|
help
|
|
|
|
Enable build of the skeleton PCI driver, used as a reference
|
|
|
|
when developing new drivers.
|
|
|
|
|
2012-08-20 20:47:00 +07:00
|
|
|
endif #MEDIA_PCI_SUPPORT
|
2013-05-22 21:25:52 +07:00
|
|
|
endif #PCI
|