a3b91d8bd1
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>
83 lines
2.3 KiB
Plaintext
83 lines
2.3 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
# This Kconfig option is also used by the legacy av7110 driver
|
|
config TTPCI_EEPROM
|
|
tristate
|
|
depends on I2C
|
|
|
|
# Should match the hybrid card list below
|
|
config MEDIA_HYBRID_USB
|
|
bool
|
|
depends on VIDEO_AU0828 || VIDEO_CX231XX || VIDEO_TM6000 || VIDEO_PVRUSB2
|
|
default y
|
|
|
|
if USB && MEDIA_SUPPORT
|
|
|
|
menuconfig MEDIA_USB_SUPPORT
|
|
bool "Media USB Adapters"
|
|
help
|
|
Enable media drivers for USB bus.
|
|
If you have such devices, say Y.
|
|
|
|
if MEDIA_USB_SUPPORT
|
|
|
|
if MEDIA_CAMERA_SUPPORT
|
|
comment "Webcam devices"
|
|
source "drivers/media/usb/uvc/Kconfig"
|
|
source "drivers/media/usb/gspca/Kconfig"
|
|
source "drivers/media/usb/pwc/Kconfig"
|
|
source "drivers/media/usb/cpia2/Kconfig"
|
|
source "drivers/media/usb/zr364xx/Kconfig"
|
|
source "drivers/media/usb/stkwebcam/Kconfig"
|
|
source "drivers/media/usb/s2255/Kconfig"
|
|
source "drivers/media/usb/usbtv/Kconfig"
|
|
endif
|
|
|
|
if MEDIA_ANALOG_TV_SUPPORT
|
|
comment "Analog TV USB devices"
|
|
source "drivers/media/usb/hdpvr/Kconfig"
|
|
source "drivers/media/usb/stk1160/Kconfig"
|
|
source "drivers/media/usb/go7007/Kconfig"
|
|
endif
|
|
|
|
if (MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT)
|
|
comment "Analog/digital TV USB devices"
|
|
source "drivers/media/usb/au0828/Kconfig"
|
|
source "drivers/media/usb/cx231xx/Kconfig"
|
|
source "drivers/media/usb/pvrusb2/Kconfig"
|
|
source "drivers/media/usb/tm6000/Kconfig"
|
|
endif
|
|
|
|
|
|
if I2C && MEDIA_DIGITAL_TV_SUPPORT
|
|
comment "Digital TV USB devices"
|
|
source "drivers/media/usb/dvb-usb/Kconfig"
|
|
source "drivers/media/usb/dvb-usb-v2/Kconfig"
|
|
source "drivers/media/usb/ttusb-budget/Kconfig"
|
|
source "drivers/media/usb/ttusb-dec/Kconfig"
|
|
source "drivers/media/usb/siano/Kconfig"
|
|
source "drivers/media/usb/b2c2/Kconfig"
|
|
source "drivers/media/usb/as102/Kconfig"
|
|
endif
|
|
|
|
if (MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT)
|
|
comment "Webcam, TV (analog/digital) USB devices"
|
|
source "drivers/media/usb/em28xx/Kconfig"
|
|
endif
|
|
|
|
if MEDIA_SDR_SUPPORT
|
|
comment "Software defined radio USB devices"
|
|
source "drivers/media/usb/airspy/Kconfig"
|
|
source "drivers/media/usb/hackrf/Kconfig"
|
|
source "drivers/media/usb/msi2500/Kconfig"
|
|
endif
|
|
|
|
if MEDIA_CEC_SUPPORT
|
|
comment "USB HDMI CEC adapters"
|
|
source "drivers/media/usb/pulse8-cec/Kconfig"
|
|
source "drivers/media/usb/rainshadow-cec/Kconfig"
|
|
endif
|
|
|
|
endif #MEDIA_USB_SUPPORT
|
|
endif #USB
|