Commit 724f4a32 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] media: only show V4L devices based on device type selection

After this patch, the MEDIA*_SUPPORT will be used as a filter,
exposing only devices that are pertinent to one of the 3
V4L types: webcam/grabber, radio, analog TV.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 8cfd9dcc
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
menuconfig RADIO_ADAPTERS menuconfig RADIO_ADAPTERS
bool "Radio Adapters" bool "Radio Adapters"
depends on VIDEO_V4L2 depends on VIDEO_V4L2
depends on MEDIA_RADIO_SUPPORT
default y default y
---help--- ---help---
Say Y here to enable selecting AM/FM radio adapters. Say Y here to enable selecting AM/FM radio adapters.
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
config VIDEO_V4L2 config VIDEO_V4L2
tristate tristate
depends on VIDEO_DEV && VIDEO_V4L2_COMMON depends on VIDEO_DEV && VIDEO_V4L2_COMMON
default VIDEO_DEV && VIDEO_V4L2_COMMON default y
config VIDEOBUF_GEN config VIDEOBUF_GEN
tristate tristate
...@@ -73,6 +73,7 @@ config VIDEOBUF2_DMA_SG ...@@ -73,6 +73,7 @@ config VIDEOBUF2_DMA_SG
menuconfig VIDEO_CAPTURE_DRIVERS menuconfig VIDEO_CAPTURE_DRIVERS
bool "Video capture adapters" bool "Video capture adapters"
depends on VIDEO_V4L2 depends on VIDEO_V4L2
depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT
default y default y
---help--- ---help---
Say Y here to enable selecting the video adapters for Say Y here to enable selecting the video adapters for
...@@ -478,6 +479,7 @@ config VIDEO_SMIAPP_PLL ...@@ -478,6 +479,7 @@ config VIDEO_SMIAPP_PLL
config VIDEO_OV7670 config VIDEO_OV7670
tristate "OmniVision OV7670 sensor support" tristate "OmniVision OV7670 sensor support"
depends on I2C && VIDEO_V4L2 depends on I2C && VIDEO_V4L2
depends on MEDIA_CAMERA_SUPPORT
---help--- ---help---
This is a Video4Linux2 sensor-level driver for the OmniVision This is a Video4Linux2 sensor-level driver for the OmniVision
OV7670 VGA camera. It currently only works with the M88ALP01 OV7670 VGA camera. It currently only works with the M88ALP01
...@@ -486,6 +488,7 @@ config VIDEO_OV7670 ...@@ -486,6 +488,7 @@ config VIDEO_OV7670
config VIDEO_VS6624 config VIDEO_VS6624
tristate "ST VS6624 sensor support" tristate "ST VS6624 sensor support"
depends on VIDEO_V4L2 && I2C depends on VIDEO_V4L2 && I2C
depends on MEDIA_CAMERA_SUPPORT
---help--- ---help---
This is a Video4Linux2 sensor-level driver for the ST VS6624 This is a Video4Linux2 sensor-level driver for the ST VS6624
camera. camera.
...@@ -496,6 +499,7 @@ config VIDEO_VS6624 ...@@ -496,6 +499,7 @@ config VIDEO_VS6624
config VIDEO_MT9M032 config VIDEO_MT9M032
tristate "MT9M032 camera sensor support" tristate "MT9M032 camera sensor support"
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
depends on MEDIA_CAMERA_SUPPORT
select VIDEO_APTINA_PLL select VIDEO_APTINA_PLL
---help--- ---help---
This driver supports MT9M032 camera sensors from Aptina, monochrome This driver supports MT9M032 camera sensors from Aptina, monochrome
...@@ -504,6 +508,7 @@ config VIDEO_MT9M032 ...@@ -504,6 +508,7 @@ config VIDEO_MT9M032
config VIDEO_MT9P031 config VIDEO_MT9P031
tristate "Aptina MT9P031 support" tristate "Aptina MT9P031 support"
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
depends on MEDIA_CAMERA_SUPPORT
select VIDEO_APTINA_PLL select VIDEO_APTINA_PLL
---help--- ---help---
This is a Video4Linux2 sensor-level driver for the Aptina This is a Video4Linux2 sensor-level driver for the Aptina
...@@ -512,6 +517,7 @@ config VIDEO_MT9P031 ...@@ -512,6 +517,7 @@ config VIDEO_MT9P031
config VIDEO_MT9T001 config VIDEO_MT9T001
tristate "Aptina MT9T001 support" tristate "Aptina MT9T001 support"
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
depends on MEDIA_CAMERA_SUPPORT
---help--- ---help---
This is a Video4Linux2 sensor-level driver for the Aptina This is a Video4Linux2 sensor-level driver for the Aptina
(Micron) mt0t001 3 Mpixel camera. (Micron) mt0t001 3 Mpixel camera.
...@@ -519,6 +525,7 @@ config VIDEO_MT9T001 ...@@ -519,6 +525,7 @@ config VIDEO_MT9T001
config VIDEO_MT9V011 config VIDEO_MT9V011
tristate "Micron mt9v011 sensor support" tristate "Micron mt9v011 sensor support"
depends on I2C && VIDEO_V4L2 depends on I2C && VIDEO_V4L2
depends on MEDIA_CAMERA_SUPPORT
---help--- ---help---
This is a Video4Linux2 sensor-level driver for the Micron This is a Video4Linux2 sensor-level driver for the Micron
mt0v011 1.3 Mpixel camera. It currently only works with the mt0v011 1.3 Mpixel camera. It currently only works with the
...@@ -527,6 +534,7 @@ config VIDEO_MT9V011 ...@@ -527,6 +534,7 @@ config VIDEO_MT9V011
config VIDEO_MT9V032 config VIDEO_MT9V032
tristate "Micron MT9V032 sensor support" tristate "Micron MT9V032 sensor support"
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
depends on MEDIA_CAMERA_SUPPORT
---help--- ---help---
This is a Video4Linux2 sensor-level driver for the Micron This is a Video4Linux2 sensor-level driver for the Micron
MT9V032 752x480 CMOS sensor. MT9V032 752x480 CMOS sensor.
...@@ -534,6 +542,7 @@ config VIDEO_MT9V032 ...@@ -534,6 +542,7 @@ config VIDEO_MT9V032
config VIDEO_TCM825X config VIDEO_TCM825X
tristate "TCM825x camera sensor support" tristate "TCM825x camera sensor support"
depends on I2C && VIDEO_V4L2 depends on I2C && VIDEO_V4L2
depends on MEDIA_CAMERA_SUPPORT
---help--- ---help---
This is a driver for the Toshiba TCM825x VGA camera sensor. This is a driver for the Toshiba TCM825x VGA camera sensor.
It is used for example in Nokia N800. It is used for example in Nokia N800.
...@@ -541,12 +550,14 @@ config VIDEO_TCM825X ...@@ -541,12 +550,14 @@ config VIDEO_TCM825X
config VIDEO_SR030PC30 config VIDEO_SR030PC30
tristate "Siliconfile SR030PC30 sensor support" tristate "Siliconfile SR030PC30 sensor support"
depends on I2C && VIDEO_V4L2 depends on I2C && VIDEO_V4L2
depends on MEDIA_CAMERA_SUPPORT
---help--- ---help---
This driver supports SR030PC30 VGA camera from Siliconfile This driver supports SR030PC30 VGA camera from Siliconfile
config VIDEO_NOON010PC30 config VIDEO_NOON010PC30
tristate "Siliconfile NOON010PC30 sensor support" tristate "Siliconfile NOON010PC30 sensor support"
depends on I2C && VIDEO_V4L2 && EXPERIMENTAL && VIDEO_V4L2_SUBDEV_API depends on I2C && VIDEO_V4L2 && EXPERIMENTAL && VIDEO_V4L2_SUBDEV_API
depends on MEDIA_CAMERA_SUPPORT
---help--- ---help---
This driver supports NOON010PC30 CIF camera from Siliconfile This driver supports NOON010PC30 CIF camera from Siliconfile
...@@ -554,6 +565,7 @@ source "drivers/media/video/m5mols/Kconfig" ...@@ -554,6 +565,7 @@ source "drivers/media/video/m5mols/Kconfig"
config VIDEO_S5K6AA config VIDEO_S5K6AA
tristate "Samsung S5K6AAFX sensor support" tristate "Samsung S5K6AAFX sensor support"
depends on MEDIA_CAMERA_SUPPORT
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
---help--- ---help---
This is a V4L2 sensor-level driver for Samsung S5K6AA(FX) 1.3M This is a V4L2 sensor-level driver for Samsung S5K6AA(FX) 1.3M
...@@ -566,6 +578,7 @@ comment "Flash devices" ...@@ -566,6 +578,7 @@ comment "Flash devices"
config VIDEO_ADP1653 config VIDEO_ADP1653
tristate "ADP1653 flash support" tristate "ADP1653 flash support"
depends on I2C && VIDEO_V4L2 && MEDIA_CONTROLLER depends on I2C && VIDEO_V4L2 && MEDIA_CONTROLLER
depends on MEDIA_CAMERA_SUPPORT
---help--- ---help---
This is a driver for the ADP1653 flash controller. It is used for This is a driver for the ADP1653 flash controller. It is used for
example in Nokia N900. example in Nokia N900.
...@@ -573,6 +586,7 @@ config VIDEO_ADP1653 ...@@ -573,6 +586,7 @@ config VIDEO_ADP1653
config VIDEO_AS3645A config VIDEO_AS3645A
tristate "AS3645A flash driver support" tristate "AS3645A flash driver support"
depends on I2C && VIDEO_V4L2 && MEDIA_CONTROLLER depends on I2C && VIDEO_V4L2 && MEDIA_CONTROLLER
depends on MEDIA_CAMERA_SUPPORT
---help--- ---help---
This is a driver for the AS3645A and LM3555 flash controllers. It has This is a driver for the AS3645A and LM3555 flash controllers. It has
build in control for flash, torch and indicator LEDs. build in control for flash, torch and indicator LEDs.
...@@ -647,30 +661,14 @@ menuconfig V4L_USB_DRIVERS ...@@ -647,30 +661,14 @@ menuconfig V4L_USB_DRIVERS
depends on USB depends on USB
default y default y
if V4L_USB_DRIVERS if V4L_USB_DRIVERS && MEDIA_CAMERA_SUPPORT
source "drivers/media/video/au0828/Kconfig" comment "Webcam devices"
source "drivers/media/video/uvc/Kconfig" source "drivers/media/video/uvc/Kconfig"
source "drivers/media/video/gspca/Kconfig" source "drivers/media/video/gspca/Kconfig"
source "drivers/media/video/pvrusb2/Kconfig"
source "drivers/media/video/hdpvr/Kconfig"
source "drivers/media/video/em28xx/Kconfig"
source "drivers/media/video/tlg2300/Kconfig"
source "drivers/media/video/cx231xx/Kconfig"
source "drivers/media/video/tm6000/Kconfig"
source "drivers/media/video/usbvision/Kconfig"
source "drivers/media/video/sn9c102/Kconfig"
source "drivers/media/video/pwc/Kconfig" source "drivers/media/video/pwc/Kconfig"
source "drivers/media/video/cpia2/Kconfig" source "drivers/media/video/cpia2/Kconfig"
...@@ -711,15 +709,46 @@ config USB_S2255 ...@@ -711,15 +709,46 @@ config USB_S2255
Say Y here if you want support for the Sensoray 2255 USB device. Say Y here if you want support for the Sensoray 2255 USB device.
This driver can be compiled as a module, called s2255drv. This driver can be compiled as a module, called s2255drv.
source "drivers/media/video/sn9c102/Kconfig"
endif # V4L_USB_DRIVERS && MEDIA_CAMERA_SUPPORT
if V4L_USB_DRIVERS
comment "Webcam and/or TV USB devices"
source "drivers/media/video/em28xx/Kconfig"
endif
if V4L_USB_DRIVERS && MEDIA_ANALOG_TV_SUPPORT
comment "TV USB devices"
source "drivers/media/video/au0828/Kconfig"
source "drivers/media/video/pvrusb2/Kconfig"
source "drivers/media/video/hdpvr/Kconfig"
source "drivers/media/video/tlg2300/Kconfig"
source "drivers/media/video/cx231xx/Kconfig"
source "drivers/media/video/tm6000/Kconfig"
source "drivers/media/video/usbvision/Kconfig"
endif # V4L_USB_DRIVERS endif # V4L_USB_DRIVERS
# #
# PCI drivers configuration # PCI drivers configuration - No devices here are for webcams
# #
menuconfig V4L_PCI_DRIVERS menuconfig V4L_PCI_DRIVERS
bool "V4L PCI(e) devices" bool "V4L PCI(e) devices"
depends on PCI depends on PCI
depends on MEDIA_ANALOG_TV_SUPPORT
default y default y
---help--- ---help---
Say Y here to enable support for these PCI(e) drivers. Say Y here to enable support for these PCI(e) drivers.
...@@ -814,11 +843,13 @@ endif # V4L_PCI_DRIVERS ...@@ -814,11 +843,13 @@ endif # V4L_PCI_DRIVERS
# #
# ISA & parallel port drivers configuration # ISA & parallel port drivers configuration
# All devices here are webcam or grabber devices
# #
menuconfig V4L_ISA_PARPORT_DRIVERS menuconfig V4L_ISA_PARPORT_DRIVERS
bool "V4L ISA and parallel port devices" bool "V4L ISA and parallel port devices"
depends on ISA || PARPORT depends on ISA || PARPORT
depends on MEDIA_CAMERA_SUPPORT
default n default n
---help--- ---help---
Say Y here to enable support for these ISA and parallel port drivers. Say Y here to enable support for these ISA and parallel port drivers.
...@@ -871,8 +902,13 @@ config VIDEO_W9966 ...@@ -871,8 +902,13 @@ config VIDEO_W9966
endif # V4L_ISA_PARPORT_DRIVERS endif # V4L_ISA_PARPORT_DRIVERS
#
# Platform drivers
# All drivers here are currently for webcam support
menuconfig V4L_PLATFORM_DRIVERS menuconfig V4L_PLATFORM_DRIVERS
bool "V4L platform devices" bool "V4L platform devices"
depends on MEDIA_CAMERA_SUPPORT
default n default n
---help--- ---help---
Say Y here to enable support for platform-specific V4L drivers. Say Y here to enable support for platform-specific V4L drivers.
......
config VIDEO_M5MOLS config VIDEO_M5MOLS
tristate "Fujitsu M-5MOLS 8MP sensor support" tristate "Fujitsu M-5MOLS 8MP sensor support"
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
depends on MEDIA_CAMERA_SUPPORT
---help--- ---help---
This driver supports Fujitsu M-5MOLS camera sensor with ISP This driver supports Fujitsu M-5MOLS camera sensor with ISP
config VIDEO_SMIAPP config VIDEO_SMIAPP
tristate "SMIA++/SMIA sensor support" tristate "SMIA++/SMIA sensor support"
depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAVE_CLK depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAVE_CLK
depends on MEDIA_CAMERA_SUPPORT
select VIDEO_SMIAPP_PLL select VIDEO_SMIAPP_PLL
---help--- ---help---
This is a generic driver for SMIA++/SMIA camera modules. This is a generic driver for SMIA++/SMIA camera modules.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment