aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-05-28 07:17:49 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-07-05 17:22:53 -0400
commit724f4a321ff5f6d4dd6176e95063d05a85520736 (patch)
treef5587892dc589a865f702cbeae71e5f8212b13cb /drivers
parent8cfd9dccf2693774d28c2d4ea7b2a7301c99d190 (diff)
[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: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/radio/Kconfig1
-rw-r--r--drivers/media/video/Kconfig76
-rw-r--r--drivers/media/video/m5mols/Kconfig1
-rw-r--r--drivers/media/video/smiapp/Kconfig1
4 files changed, 59 insertions, 20 deletions
diff --git a/drivers/media/radio/Kconfig b/drivers/media/radio/Kconfig
index c257da13d766..24ce5a47f955 100644
--- a/drivers/media/radio/Kconfig
+++ b/drivers/media/radio/Kconfig
@@ -5,6 +5,7 @@
5menuconfig RADIO_ADAPTERS 5menuconfig RADIO_ADAPTERS
6 bool "Radio Adapters" 6 bool "Radio Adapters"
7 depends on VIDEO_V4L2 7 depends on VIDEO_V4L2
8 depends on MEDIA_RADIO_SUPPORT
8 default y 9 default y
9 ---help--- 10 ---help---
10 Say Y here to enable selecting AM/FM radio adapters. 11 Say Y here to enable selecting AM/FM radio adapters.
diff --git a/drivers/media/video/Kconfig b/drivers/media/video/Kconfig
index 99937c94d7df..da363c44fab2 100644
--- a/drivers/media/video/Kconfig
+++ b/drivers/media/video/Kconfig
@@ -5,7 +5,7 @@
5config VIDEO_V4L2 5config VIDEO_V4L2
6 tristate 6 tristate
7 depends on VIDEO_DEV && VIDEO_V4L2_COMMON 7 depends on VIDEO_DEV && VIDEO_V4L2_COMMON
8 default VIDEO_DEV && VIDEO_V4L2_COMMON 8 default y
9 9
10config VIDEOBUF_GEN 10config VIDEOBUF_GEN
11 tristate 11 tristate
@@ -73,6 +73,7 @@ config VIDEOBUF2_DMA_SG
73menuconfig VIDEO_CAPTURE_DRIVERS 73menuconfig VIDEO_CAPTURE_DRIVERS
74 bool "Video capture adapters" 74 bool "Video capture adapters"
75 depends on VIDEO_V4L2 75 depends on VIDEO_V4L2
76 depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT
76 default y 77 default y
77 ---help--- 78 ---help---
78 Say Y here to enable selecting the video adapters for 79 Say Y here to enable selecting the video adapters for
@@ -478,6 +479,7 @@ config VIDEO_SMIAPP_PLL
478config VIDEO_OV7670 479config VIDEO_OV7670
479 tristate "OmniVision OV7670 sensor support" 480 tristate "OmniVision OV7670 sensor support"
480 depends on I2C && VIDEO_V4L2 481 depends on I2C && VIDEO_V4L2
482 depends on MEDIA_CAMERA_SUPPORT
481 ---help--- 483 ---help---
482 This is a Video4Linux2 sensor-level driver for the OmniVision 484 This is a Video4Linux2 sensor-level driver for the OmniVision
483 OV7670 VGA camera. It currently only works with the M88ALP01 485 OV7670 VGA camera. It currently only works with the M88ALP01
@@ -486,6 +488,7 @@ config VIDEO_OV7670
486config VIDEO_VS6624 488config VIDEO_VS6624
487 tristate "ST VS6624 sensor support" 489 tristate "ST VS6624 sensor support"
488 depends on VIDEO_V4L2 && I2C 490 depends on VIDEO_V4L2 && I2C
491 depends on MEDIA_CAMERA_SUPPORT
489 ---help--- 492 ---help---
490 This is a Video4Linux2 sensor-level driver for the ST VS6624 493 This is a Video4Linux2 sensor-level driver for the ST VS6624
491 camera. 494 camera.
@@ -496,6 +499,7 @@ config VIDEO_VS6624
496config VIDEO_MT9M032 499config VIDEO_MT9M032
497 tristate "MT9M032 camera sensor support" 500 tristate "MT9M032 camera sensor support"
498 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API 501 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
502 depends on MEDIA_CAMERA_SUPPORT
499 select VIDEO_APTINA_PLL 503 select VIDEO_APTINA_PLL
500 ---help--- 504 ---help---
501 This driver supports MT9M032 camera sensors from Aptina, monochrome 505 This driver supports MT9M032 camera sensors from Aptina, monochrome
@@ -504,6 +508,7 @@ config VIDEO_MT9M032
504config VIDEO_MT9P031 508config VIDEO_MT9P031
505 tristate "Aptina MT9P031 support" 509 tristate "Aptina MT9P031 support"
506 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API 510 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
511 depends on MEDIA_CAMERA_SUPPORT
507 select VIDEO_APTINA_PLL 512 select VIDEO_APTINA_PLL
508 ---help--- 513 ---help---
509 This is a Video4Linux2 sensor-level driver for the Aptina 514 This is a Video4Linux2 sensor-level driver for the Aptina
@@ -512,6 +517,7 @@ config VIDEO_MT9P031
512config VIDEO_MT9T001 517config VIDEO_MT9T001
513 tristate "Aptina MT9T001 support" 518 tristate "Aptina MT9T001 support"
514 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API 519 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
520 depends on MEDIA_CAMERA_SUPPORT
515 ---help--- 521 ---help---
516 This is a Video4Linux2 sensor-level driver for the Aptina 522 This is a Video4Linux2 sensor-level driver for the Aptina
517 (Micron) mt0t001 3 Mpixel camera. 523 (Micron) mt0t001 3 Mpixel camera.
@@ -519,6 +525,7 @@ config VIDEO_MT9T001
519config VIDEO_MT9V011 525config VIDEO_MT9V011
520 tristate "Micron mt9v011 sensor support" 526 tristate "Micron mt9v011 sensor support"
521 depends on I2C && VIDEO_V4L2 527 depends on I2C && VIDEO_V4L2
528 depends on MEDIA_CAMERA_SUPPORT
522 ---help--- 529 ---help---
523 This is a Video4Linux2 sensor-level driver for the Micron 530 This is a Video4Linux2 sensor-level driver for the Micron
524 mt0v011 1.3 Mpixel camera. It currently only works with the 531 mt0v011 1.3 Mpixel camera. It currently only works with the
@@ -527,6 +534,7 @@ config VIDEO_MT9V011
527config VIDEO_MT9V032 534config VIDEO_MT9V032
528 tristate "Micron MT9V032 sensor support" 535 tristate "Micron MT9V032 sensor support"
529 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API 536 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
537 depends on MEDIA_CAMERA_SUPPORT
530 ---help--- 538 ---help---
531 This is a Video4Linux2 sensor-level driver for the Micron 539 This is a Video4Linux2 sensor-level driver for the Micron
532 MT9V032 752x480 CMOS sensor. 540 MT9V032 752x480 CMOS sensor.
@@ -534,6 +542,7 @@ config VIDEO_MT9V032
534config VIDEO_TCM825X 542config VIDEO_TCM825X
535 tristate "TCM825x camera sensor support" 543 tristate "TCM825x camera sensor support"
536 depends on I2C && VIDEO_V4L2 544 depends on I2C && VIDEO_V4L2
545 depends on MEDIA_CAMERA_SUPPORT
537 ---help--- 546 ---help---
538 This is a driver for the Toshiba TCM825x VGA camera sensor. 547 This is a driver for the Toshiba TCM825x VGA camera sensor.
539 It is used for example in Nokia N800. 548 It is used for example in Nokia N800.
@@ -541,12 +550,14 @@ config VIDEO_TCM825X
541config VIDEO_SR030PC30 550config VIDEO_SR030PC30
542 tristate "Siliconfile SR030PC30 sensor support" 551 tristate "Siliconfile SR030PC30 sensor support"
543 depends on I2C && VIDEO_V4L2 552 depends on I2C && VIDEO_V4L2
553 depends on MEDIA_CAMERA_SUPPORT
544 ---help--- 554 ---help---
545 This driver supports SR030PC30 VGA camera from Siliconfile 555 This driver supports SR030PC30 VGA camera from Siliconfile
546 556
547config VIDEO_NOON010PC30 557config VIDEO_NOON010PC30
548 tristate "Siliconfile NOON010PC30 sensor support" 558 tristate "Siliconfile NOON010PC30 sensor support"
549 depends on I2C && VIDEO_V4L2 && EXPERIMENTAL && VIDEO_V4L2_SUBDEV_API 559 depends on I2C && VIDEO_V4L2 && EXPERIMENTAL && VIDEO_V4L2_SUBDEV_API
560 depends on MEDIA_CAMERA_SUPPORT
550 ---help--- 561 ---help---
551 This driver supports NOON010PC30 CIF camera from Siliconfile 562 This driver supports NOON010PC30 CIF camera from Siliconfile
552 563
@@ -554,6 +565,7 @@ source "drivers/media/video/m5mols/Kconfig"
554 565
555config VIDEO_S5K6AA 566config VIDEO_S5K6AA
556 tristate "Samsung S5K6AAFX sensor support" 567 tristate "Samsung S5K6AAFX sensor support"
568 depends on MEDIA_CAMERA_SUPPORT
557 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API 569 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
558 ---help--- 570 ---help---
559 This is a V4L2 sensor-level driver for Samsung S5K6AA(FX) 1.3M 571 This is a V4L2 sensor-level driver for Samsung S5K6AA(FX) 1.3M
@@ -566,6 +578,7 @@ comment "Flash devices"
566config VIDEO_ADP1653 578config VIDEO_ADP1653
567 tristate "ADP1653 flash support" 579 tristate "ADP1653 flash support"
568 depends on I2C && VIDEO_V4L2 && MEDIA_CONTROLLER 580 depends on I2C && VIDEO_V4L2 && MEDIA_CONTROLLER
581 depends on MEDIA_CAMERA_SUPPORT
569 ---help--- 582 ---help---
570 This is a driver for the ADP1653 flash controller. It is used for 583 This is a driver for the ADP1653 flash controller. It is used for
571 example in Nokia N900. 584 example in Nokia N900.
@@ -573,6 +586,7 @@ config VIDEO_ADP1653
573config VIDEO_AS3645A 586config VIDEO_AS3645A
574 tristate "AS3645A flash driver support" 587 tristate "AS3645A flash driver support"
575 depends on I2C && VIDEO_V4L2 && MEDIA_CONTROLLER 588 depends on I2C && VIDEO_V4L2 && MEDIA_CONTROLLER
589 depends on MEDIA_CAMERA_SUPPORT
576 ---help--- 590 ---help---
577 This is a driver for the AS3645A and LM3555 flash controllers. It has 591 This is a driver for the AS3645A and LM3555 flash controllers. It has
578 build in control for flash, torch and indicator LEDs. 592 build in control for flash, torch and indicator LEDs.
@@ -647,30 +661,14 @@ menuconfig V4L_USB_DRIVERS
647 depends on USB 661 depends on USB
648 default y 662 default y
649 663
650if V4L_USB_DRIVERS 664if V4L_USB_DRIVERS && MEDIA_CAMERA_SUPPORT
651 665
652source "drivers/media/video/au0828/Kconfig" 666 comment "Webcam devices"
653 667
654source "drivers/media/video/uvc/Kconfig" 668source "drivers/media/video/uvc/Kconfig"
655 669
656source "drivers/media/video/gspca/Kconfig" 670source "drivers/media/video/gspca/Kconfig"
657 671
658source "drivers/media/video/pvrusb2/Kconfig"
659
660source "drivers/media/video/hdpvr/Kconfig"
661
662source "drivers/media/video/em28xx/Kconfig"
663
664source "drivers/media/video/tlg2300/Kconfig"
665
666source "drivers/media/video/cx231xx/Kconfig"
667
668source "drivers/media/video/tm6000/Kconfig"
669
670source "drivers/media/video/usbvision/Kconfig"
671
672source "drivers/media/video/sn9c102/Kconfig"
673
674source "drivers/media/video/pwc/Kconfig" 672source "drivers/media/video/pwc/Kconfig"
675 673
676source "drivers/media/video/cpia2/Kconfig" 674source "drivers/media/video/cpia2/Kconfig"
@@ -711,15 +709,46 @@ config USB_S2255
711 Say Y here if you want support for the Sensoray 2255 USB device. 709 Say Y here if you want support for the Sensoray 2255 USB device.
712 This driver can be compiled as a module, called s2255drv. 710 This driver can be compiled as a module, called s2255drv.
713 711
712source "drivers/media/video/sn9c102/Kconfig"
713
714endif # V4L_USB_DRIVERS && MEDIA_CAMERA_SUPPORT
715
716if V4L_USB_DRIVERS
717
718 comment "Webcam and/or TV USB devices"
719
720source "drivers/media/video/em28xx/Kconfig"
721
722endif
723
724if V4L_USB_DRIVERS && MEDIA_ANALOG_TV_SUPPORT
725
726 comment "TV USB devices"
727
728source "drivers/media/video/au0828/Kconfig"
729
730source "drivers/media/video/pvrusb2/Kconfig"
731
732source "drivers/media/video/hdpvr/Kconfig"
733
734source "drivers/media/video/tlg2300/Kconfig"
735
736source "drivers/media/video/cx231xx/Kconfig"
737
738source "drivers/media/video/tm6000/Kconfig"
739
740source "drivers/media/video/usbvision/Kconfig"
741
714endif # V4L_USB_DRIVERS 742endif # V4L_USB_DRIVERS
715 743
716# 744#
717# PCI drivers configuration 745# PCI drivers configuration - No devices here are for webcams
718# 746#
719 747
720menuconfig V4L_PCI_DRIVERS 748menuconfig V4L_PCI_DRIVERS
721 bool "V4L PCI(e) devices" 749 bool "V4L PCI(e) devices"
722 depends on PCI 750 depends on PCI
751 depends on MEDIA_ANALOG_TV_SUPPORT
723 default y 752 default y
724 ---help--- 753 ---help---
725 Say Y here to enable support for these PCI(e) drivers. 754 Say Y here to enable support for these PCI(e) drivers.
@@ -814,11 +843,13 @@ endif # V4L_PCI_DRIVERS
814 843
815# 844#
816# ISA & parallel port drivers configuration 845# ISA & parallel port drivers configuration
846# All devices here are webcam or grabber devices
817# 847#
818 848
819menuconfig V4L_ISA_PARPORT_DRIVERS 849menuconfig V4L_ISA_PARPORT_DRIVERS
820 bool "V4L ISA and parallel port devices" 850 bool "V4L ISA and parallel port devices"
821 depends on ISA || PARPORT 851 depends on ISA || PARPORT
852 depends on MEDIA_CAMERA_SUPPORT
822 default n 853 default n
823 ---help--- 854 ---help---
824 Say Y here to enable support for these ISA and parallel port drivers. 855 Say Y here to enable support for these ISA and parallel port drivers.
@@ -871,8 +902,13 @@ config VIDEO_W9966
871 902
872endif # V4L_ISA_PARPORT_DRIVERS 903endif # V4L_ISA_PARPORT_DRIVERS
873 904
905#
906# Platform drivers
907# All drivers here are currently for webcam support
908
874menuconfig V4L_PLATFORM_DRIVERS 909menuconfig V4L_PLATFORM_DRIVERS
875 bool "V4L platform devices" 910 bool "V4L platform devices"
911 depends on MEDIA_CAMERA_SUPPORT
876 default n 912 default n
877 ---help--- 913 ---help---
878 Say Y here to enable support for platform-specific V4L drivers. 914 Say Y here to enable support for platform-specific V4L drivers.
diff --git a/drivers/media/video/m5mols/Kconfig b/drivers/media/video/m5mols/Kconfig
index 302dc3d70193..dc8c2505907e 100644
--- a/drivers/media/video/m5mols/Kconfig
+++ b/drivers/media/video/m5mols/Kconfig
@@ -1,5 +1,6 @@
1config VIDEO_M5MOLS 1config VIDEO_M5MOLS
2 tristate "Fujitsu M-5MOLS 8MP sensor support" 2 tristate "Fujitsu M-5MOLS 8MP sensor support"
3 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API 3 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API
4 depends on MEDIA_CAMERA_SUPPORT
4 ---help--- 5 ---help---
5 This driver supports Fujitsu M-5MOLS camera sensor with ISP 6 This driver supports Fujitsu M-5MOLS camera sensor with ISP
diff --git a/drivers/media/video/smiapp/Kconfig b/drivers/media/video/smiapp/Kconfig
index fb99ff18be07..3149cda1d0db 100644
--- a/drivers/media/video/smiapp/Kconfig
+++ b/drivers/media/video/smiapp/Kconfig
@@ -1,6 +1,7 @@
1config VIDEO_SMIAPP 1config VIDEO_SMIAPP
2 tristate "SMIA++/SMIA sensor support" 2 tristate "SMIA++/SMIA sensor support"
3 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAVE_CLK 3 depends on I2C && VIDEO_V4L2 && VIDEO_V4L2_SUBDEV_API && HAVE_CLK
4 depends on MEDIA_CAMERA_SUPPORT
4 select VIDEO_SMIAPP_PLL 5 select VIDEO_SMIAPP_PLL
5 ---help--- 6 ---help---
6 This is a generic driver for SMIA++/SMIA camera modules. 7 This is a generic driver for SMIA++/SMIA camera modules.