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
|
|
|
|
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"
|
2022-03-14 18:01:05 +08:00
|
|
|
|
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"
|
2022-08-10 19:54:45 +08:00
|
|
|
source "drivers/media/pci/zoran/Kconfig"
|
2022-03-14 18:01:05 +08:00
|
|
|
|
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"
|
2022-03-14 18:01:05 +08:00
|
|
|
|
|
|
|
source "drivers/media/pci/dt3155/Kconfig"
|
2012-08-14 23:13:30 +08:00
|
|
|
source "drivers/media/pci/ivtv/Kconfig"
|
2023-02-01 20:21:36 +08:00
|
|
|
source "drivers/media/pci/saa7146/Kconfig"
|
2022-03-14 18:01:05 +08:00
|
|
|
|
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"
|
2022-03-14 18:01:05 +08:00
|
|
|
|
|
|
|
source "drivers/media/pci/bt8xx/Kconfig"
|
|
|
|
source "drivers/media/pci/cobalt/Kconfig"
|
2012-08-14 23:13:30 +08:00
|
|
|
source "drivers/media/pci/cx18/Kconfig"
|
|
|
|
source "drivers/media/pci/cx23885/Kconfig"
|
2020-04-14 17:00:30 +08:00
|
|
|
source "drivers/media/pci/cx25821/Kconfig"
|
2012-08-14 23:13:30 +08:00
|
|
|
source "drivers/media/pci/cx88/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"
|
2022-03-14 18:01:05 +08:00
|
|
|
|
2012-06-15 03:35:57 +08:00
|
|
|
source "drivers/media/pci/b2c2/Kconfig"
|
2022-03-14 18:01:05 +08:00
|
|
|
source "drivers/media/pci/ddbridge/Kconfig"
|
2012-06-15 03:35:57 +08:00
|
|
|
source "drivers/media/pci/dm1105/Kconfig"
|
2012-06-15 03:35:58 +08:00
|
|
|
source "drivers/media/pci/mantis/Kconfig"
|
2022-03-14 18:01:05 +08:00
|
|
|
source "drivers/media/pci/netup_unidvb/Kconfig"
|
2012-06-15 03:35:58 +08:00
|
|
|
source "drivers/media/pci/ngene/Kconfig"
|
2022-03-14 18:01:05 +08:00
|
|
|
source "drivers/media/pci/pluto2/Kconfig"
|
|
|
|
source "drivers/media/pci/pt1/Kconfig"
|
|
|
|
source "drivers/media/pci/pt3/Kconfig"
|
2014-10-08 15:31:10 +08:00
|
|
|
source "drivers/media/pci/smipcie/Kconfig"
|
2023-02-01 20:21:36 +08:00
|
|
|
source "drivers/media/pci/ttpci/Kconfig"
|
2011-07-04 05:25:29 +08:00
|
|
|
|
2022-03-14 18:01:05 +08:00
|
|
|
endif
|
2017-11-09 08:30:38 +08:00
|
|
|
|
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
|
media: Kconfig: cleanup VIDEO_DEV dependencies
media Kconfig has two entries associated to V4L API:
VIDEO_DEV and VIDEO_V4L2.
On Kernel 2.6.x, there were two V4L APIs, each one with its own flag.
VIDEO_DEV were meant to:
1) enable Video4Linux and make its Kconfig options to appear;
2) it makes the Kernel build the V4L core.
while VIDEO_V4L2 where used to distinguish between drivers that
implement the newer API and drivers that implemented the former one.
With time, such meaning changed, specially after the removal of
all V4L version 1 drivers.
At the current implementation, VIDEO_DEV only does (1): it enables
the media options related to V4L, that now has:
menu "Video4Linux options"
visible if VIDEO_DEV
source "drivers/media/v4l2-core/Kconfig"
endmenu
but it doesn't affect anymore the V4L core drivers.
The rationale is that the V4L2 core has a "soft" dependency
at the I2C bus, and now requires to select a number of other
Kconfig options:
config VIDEO_V4L2
tristate
depends on (I2C || I2C=n) && VIDEO_DEV
select RATIONAL
select VIDEOBUF2_V4L2 if VIDEOBUF2_CORE
default (I2C || I2C=n) && VIDEO_DEV
In the past, merging them would be tricky, but it seems that it is now
possible to merge those symbols, in order to simplify V4L dependencies.
Let's keep VIDEO_DEV, as this one is used on some make *defconfig
configurations.
Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> # for meson-vdec & meson-ge2d
Acked-by: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
Acked-by: Łukasz Stelmach <l.stelmach@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-03-13 14:25:46 +08:00
|
|
|
depends on PCI && VIDEO_DEV
|
2020-03-26 22:47:25 +08:00
|
|
|
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.
|
|
|
|
|
2022-03-14 18:01:05 +08:00
|
|
|
source "drivers/media/pci/intel/ipu3/Kconfig"
|
|
|
|
|
2012-08-20 21:47:00 +08:00
|
|
|
endif #MEDIA_PCI_SUPPORT
|
2013-05-22 22:25:52 +08:00
|
|
|
endif #PCI
|