aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2012-05-28 07:17:47 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-07-05 17:21:28 -0400
commitb4c184e506a4cdb9b77bff4a1d39237581540b33 (patch)
tree41e83684bda91dbc63ce1022c6b69b87ed551fe8
parent31361fc4632f20e3a108f56b1a1a9c9bf2dfc07c (diff)
[media] media: reorganize the main Kconfig items
Change the main items to: <m> Multimedia support ---> [ ] Cameras/video grabbers support [ ] Analog TV support [ ] Digital TV support [ ] AM/FM radio receivers/transmitters support [ ] Remote Controller support This provides an interface that is clearer to end users that are compiling the Kernel, and will allow the building system to automatically unselect drivers for unused functions. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/Kconfig109
-rw-r--r--drivers/media/common/tuners/Kconfig1
-rw-r--r--drivers/media/dvb/frontends/Kconfig1
-rw-r--r--drivers/media/rc/Kconfig29
4 files changed, 89 insertions, 51 deletions
diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
index 9575db429df4..323b2f042d85 100644
--- a/drivers/media/Kconfig
+++ b/drivers/media/Kconfig
@@ -6,20 +6,82 @@ menuconfig MEDIA_SUPPORT
6 tristate "Multimedia support" 6 tristate "Multimedia support"
7 depends on HAS_IOMEM 7 depends on HAS_IOMEM
8 help 8 help
9 If you want to use Video for Linux, DVB for Linux, or DAB adapters, 9 If you want to use Webcams, Video grabber devices and/or TV devices
10 enable this option and other options below. 10 enable this option and other options below.
11 Additional info and docs are available on the web at
12 <http://linuxtv.org>
11 13
12if MEDIA_SUPPORT 14if MEDIA_SUPPORT
13 15
14comment "Multimedia core support" 16comment "Multimedia core support"
15 17
16# 18#
19# Multimedia support - automatically enable V4L2 and DVB core
20#
21config MEDIA_CAMERA_SUPPORT
22 bool "Cameras/video grabbers support"
23 ---help---
24 Enable support for webcams and video grabbers.
25
26 Say Y when you have a webcam or a video capture grabber board.
27
28config MEDIA_ANALOG_TV_SUPPORT
29 bool "Analog TV support"
30 ---help---
31 Enable analog TV support.
32
33 Say Y when you have a TV board with analog support or with a
34 hybrid analog/digital TV chipset.
35
36 Note: There are several DVB cards that are based on chips that
37 support both analog and digital TV. Disabling this option
38 will disable support for them.
39
40config MEDIA_DIGITAL_TV_SUPPORT
41 bool "Digital TV support"
42 ---help---
43 Enable digital TV support.
44
45 Say Y when you have a board with digital support or a board with
46 hybrid digital TV and analog TV.
47
48config MEDIA_RADIO_SUPPORT
49 bool "AM/FM radio receivers/transmitters support"
50 ---help---
51 Enable AM/FM radio support.
52
53 Additional info and docs are available on the web at
54 <http://linuxtv.org>
55
56 Say Y when you have a board with radio support.
57
58 Note: There are several TV cards that are based on chips that
59 support radio reception. Disabling this option will
60 disable support for them.
61
62menuconfig MEDIA_RC_SUPPORT
63 bool "Remote Controller support"
64 depends on INPUT
65 ---help---
66 Enable support for Remote Controllers on Linux. This is
67 needed in order to support several video capture adapters,
68 standalone IR receivers/transmitters, and RF receivers.
69
70 Enable this option if you have a video capture board even
71 if you don't need IR, as otherwise, you may not be able to
72 compile the driver for your adapter.
73
74 Say Y when you have a TV or an IR device.
75
76#
17# Media controller 77# Media controller
78# Selectable only for webcam/grabbers, as other drivers don't use it
18# 79#
19 80
20config MEDIA_CONTROLLER 81config MEDIA_CONTROLLER
21 bool "Media Controller API (EXPERIMENTAL)" 82 bool "Media Controller API (EXPERIMENTAL)"
22 depends on EXPERIMENTAL 83 depends on EXPERIMENTAL
84 depends on MEDIA_CAMERA_SUPPORT
23 ---help--- 85 ---help---
24 Enable the media controller API used to query media devices internal 86 Enable the media controller API used to query media devices internal
25 topology and configure it dynamically. 87 topology and configure it dynamically.
@@ -27,26 +89,15 @@ config MEDIA_CONTROLLER
27 This API is mostly used by camera interfaces in embedded platforms. 89 This API is mostly used by camera interfaces in embedded platforms.
28 90
29# 91#
30# V4L core and enabled API's 92# Video4Linux support
93# Only enables if one of the V4L2 types (ATV, webcam, radio) is selected
31# 94#
32 95
33config VIDEO_DEV 96config VIDEO_DEV
34 tristate "Video For Linux" 97 tristate
35 ---help--- 98 depends on MEDIA_SUPPORT
36 V4L core support for video capture and overlay devices, webcams and 99 depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT
37 AM/FM radio cards. 100 default y
38
39 This kernel includes support for the new Video for Linux Two API,
40 (V4L2).
41
42 Additional info and docs are available on the web at
43 <http://linuxtv.org>
44
45 Documentation for V4L2 is also available on the web at
46 <http://bytesex.org/v4l/>.
47
48 To compile this driver as a module, choose M here: the
49 module will be called videodev.
50 101
51config VIDEO_V4L2_COMMON 102config VIDEO_V4L2_COMMON
52 tristate 103 tristate
@@ -64,25 +115,15 @@ config VIDEO_V4L2_SUBDEV_API
64 115
65# 116#
66# DVB Core 117# DVB Core
118# Only enables if one of DTV is selected
67# 119#
68 120
69config DVB_CORE 121config DVB_CORE
70 tristate "DVB for Linux" 122 tristate
123 depends on MEDIA_SUPPORT
124 depends on MEDIA_DIGITAL_TV_SUPPORT
125 default y
71 select CRC32 126 select CRC32
72 help
73 DVB core utility functions for device handling, software fallbacks etc.
74
75 Enable this if you own a DVB/ATSC adapter and want to use it or if
76 you compile Linux for a digital SetTopBox.
77
78 Say Y when you have a DVB or an ATSC card and want to use it.
79
80 API specs and user tools are available from <http://www.linuxtv.org/>.
81
82 Please report problems regarding this support to the LinuxDVB
83 mailing list.
84
85 If unsure say N.
86 127
87config DVB_NET 128config DVB_NET
88 bool "DVB Network Support" 129 bool "DVB Network Support"
@@ -101,8 +142,6 @@ config VIDEO_MEDIA
101 tristate 142 tristate
102 default (DVB_CORE && (VIDEO_DEV = n)) || (VIDEO_DEV && (DVB_CORE = n)) || (DVB_CORE && VIDEO_DEV) 143 default (DVB_CORE && (VIDEO_DEV = n)) || (VIDEO_DEV && (DVB_CORE = n)) || (DVB_CORE && VIDEO_DEV)
103 144
104comment "Multimedia drivers"
105
106source "drivers/media/common/Kconfig" 145source "drivers/media/common/Kconfig"
107source "drivers/media/rc/Kconfig" 146source "drivers/media/rc/Kconfig"
108 147
diff --git a/drivers/media/common/tuners/Kconfig b/drivers/media/common/tuners/Kconfig
index bbf4945149a9..16ee1a45e820 100644
--- a/drivers/media/common/tuners/Kconfig
+++ b/drivers/media/common/tuners/Kconfig
@@ -2,6 +2,7 @@ config MEDIA_ATTACH
2 bool "Load and attach frontend and tuner driver modules as needed" 2 bool "Load and attach frontend and tuner driver modules as needed"
3 depends on VIDEO_MEDIA 3 depends on VIDEO_MEDIA
4 depends on MODULES 4 depends on MODULES
5 default y if !EXPERT
5 help 6 help
6 Remove the static dependency of DVB card drivers on all 7 Remove the static dependency of DVB card drivers on all
7 frontend modules for all possible card variants. Instead, 8 frontend modules for all possible card variants. Instead,
diff --git a/drivers/media/dvb/frontends/Kconfig b/drivers/media/dvb/frontends/Kconfig
index 2d4f1b6adc69..a08c2152d0ee 100644
--- a/drivers/media/dvb/frontends/Kconfig
+++ b/drivers/media/dvb/frontends/Kconfig
@@ -1,6 +1,7 @@
1config DVB_FE_CUSTOMISE 1config DVB_FE_CUSTOMISE
2 bool "Customise the frontend modules to build" 2 bool "Customise the frontend modules to build"
3 depends on DVB_CORE 3 depends on DVB_CORE
4 depends on EXPERT
4 default y if EXPERT 5 default y if EXPERT
5 help 6 help
6 This allows the user to select/deselect frontend drivers for their 7 This allows the user to select/deselect frontend drivers for their
diff --git a/drivers/media/rc/Kconfig b/drivers/media/rc/Kconfig
index f97eeb870455..d2655f103faa 100644
--- a/drivers/media/rc/Kconfig
+++ b/drivers/media/rc/Kconfig
@@ -1,21 +1,12 @@
1menuconfig RC_CORE 1config RC_CORE
2 tristate "Remote Controller adapters" 2 tristate
3 depends on MEDIA_RC_SUPPORT
3 depends on INPUT 4 depends on INPUT
4 default INPUT 5 default y
5 ---help---
6 Enable support for Remote Controllers on Linux. This is
7 needed in order to support several video capture adapters,
8 standalone IR receivers/transmitters, and RF receivers.
9
10 Enable this option if you have a video capture board even
11 if you don't need IR, as otherwise, you may not be able to
12 compile the driver for your adapter.
13
14if RC_CORE
15 6
16config LIRC 7config LIRC
17 tristate 8 tristate "LIRC interface driver"
18 default y 9 depends on RC_CORE
19 10
20 ---help--- 11 ---help---
21 Enable this option to build the Linux Infrared Remote 12 Enable this option to build the Linux Infrared Remote
@@ -109,6 +100,12 @@ config IR_MCE_KBD_DECODER
109 Windows Media Center Edition, which you would like to use with 100 Windows Media Center Edition, which you would like to use with
110 a raw IR receiver in your system. 101 a raw IR receiver in your system.
111 102
103menuconfig RC_DEVICES
104 bool "Remote Controller devices"
105 depends on RC_CORE
106
107if RC_DEVICES
108
112config IR_LIRC_CODEC 109config IR_LIRC_CODEC
113 tristate "Enable IR to LIRC bridge" 110 tristate "Enable IR to LIRC bridge"
114 depends on RC_CORE 111 depends on RC_CORE
@@ -276,4 +273,4 @@ config IR_GPIO_CIR
276 To compile this driver as a module, choose M here: the module will 273 To compile this driver as a module, choose M here: the module will
277 be called gpio-ir-recv. 274 be called gpio-ir-recv.
278 275
279endif #RC_CORE 276endif #RC_DEVICES