xref: /linux/drivers/media/Kconfig (revision d060296cc0300ae8ed08004ebd3994bf325fa257)
1#
2# Multimedia device configuration
3#
4
5config CEC_CORE
6	tristate
7
8config CEC_NOTIFIER
9	bool
10
11config CEC_PIN
12	bool
13
14menuconfig MEDIA_SUPPORT
15	tristate "Multimedia support"
16	depends on HAS_IOMEM
17	help
18	  If you want to use Webcams, Video grabber devices and/or TV devices
19	  enable this option and other options below.
20	  Additional info and docs are available on the web at
21	  <https://linuxtv.org>
22
23if MEDIA_SUPPORT
24
25comment "Multimedia core support"
26
27#
28# Multimedia support - automatically enable V4L2 and DVB core
29#
30config MEDIA_CAMERA_SUPPORT
31	bool "Cameras/video grabbers support"
32	---help---
33	  Enable support for webcams and video grabbers.
34
35	  Say Y when you have a webcam or a video capture grabber board.
36
37config MEDIA_ANALOG_TV_SUPPORT
38	bool "Analog TV support"
39	---help---
40	  Enable analog TV support.
41
42	  Say Y when you have a TV board with analog support or with a
43	  hybrid analog/digital TV chipset.
44
45	  Note: There are several DVB cards that are based on chips that
46		support both analog and digital TV. Disabling this option
47		will disable support for them.
48
49config MEDIA_DIGITAL_TV_SUPPORT
50	bool "Digital TV support"
51	---help---
52	  Enable digital TV support.
53
54	  Say Y when you have a board with digital support or a board with
55	  hybrid digital TV and analog TV.
56
57config MEDIA_RADIO_SUPPORT
58	bool "AM/FM radio receivers/transmitters support"
59	---help---
60	  Enable AM/FM radio support.
61
62	  Additional info and docs are available on the web at
63	  <https://linuxtv.org>
64
65	  Say Y when you have a board with radio support.
66
67	  Note: There are several TV cards that are based on chips that
68		support radio reception. Disabling this option will
69		disable support for them.
70
71config MEDIA_SDR_SUPPORT
72	bool "Software defined radio support"
73	---help---
74	  Enable software defined radio support.
75
76	  Say Y when you have a software defined radio device.
77
78config MEDIA_RC_SUPPORT
79	bool "Remote Controller support"
80	depends on INPUT
81	---help---
82	  Enable support for Remote Controllers on Linux. This is
83	  needed in order to support several video capture adapters,
84	  standalone IR receivers/transmitters, and RF receivers.
85
86	  Enable this option if you have a video capture board even
87	  if you don't need IR, as otherwise, you may not be able to
88	  compile the driver for your adapter.
89
90	  Say Y when you have a TV or an IR device.
91
92config MEDIA_CEC_SUPPORT
93       bool "HDMI CEC support"
94       ---help---
95         Enable support for HDMI CEC (Consumer Electronics Control),
96         which is an optional HDMI feature.
97
98         Say Y when you have an HDMI receiver, transmitter or a USB CEC
99         adapter that supports HDMI CEC.
100
101source "drivers/media/cec/Kconfig"
102
103#
104# Media controller
105#	Selectable only for webcam/grabbers, as other drivers don't use it
106#
107
108config MEDIA_CONTROLLER
109	bool "Media Controller API"
110	depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT
111	---help---
112	  Enable the media controller API used to query media devices internal
113	  topology and configure it dynamically.
114
115	  This API is mostly used by camera interfaces in embedded platforms.
116
117config MEDIA_CONTROLLER_DVB
118	bool "Enable Media controller for DVB (EXPERIMENTAL)"
119	depends on MEDIA_CONTROLLER && DVB_CORE
120	---help---
121	  Enable the media controller API support for DVB.
122
123	  This is currently experimental.
124
125#
126# Video4Linux support
127#	Only enables if one of the V4L2 types (ATV, webcam, radio) is selected
128#
129
130config VIDEO_DEV
131	tristate
132	depends on MEDIA_SUPPORT
133	depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT
134	default y
135
136config VIDEO_V4L2_SUBDEV_API
137	bool "V4L2 sub-device userspace API"
138	depends on VIDEO_DEV && MEDIA_CONTROLLER
139	---help---
140	  Enables the V4L2 sub-device pad-level userspace API used to configure
141	  video format, size and frame rate between hardware blocks.
142
143	  This API is mostly used by camera interfaces in embedded platforms.
144
145source "drivers/media/v4l2-core/Kconfig"
146
147#
148# DVB Core
149#	Only enables if one of DTV is selected
150#
151
152config DVB_CORE
153	tristate
154	depends on MEDIA_SUPPORT
155	depends on MEDIA_DIGITAL_TV_SUPPORT
156	default y
157	select CRC32
158
159config DVB_NET
160	bool "DVB Network Support"
161	default (NET && INET)
162	depends on NET && INET && DVB_CORE
163	help
164	  This option enables DVB Network Support which is a part of the DVB
165	  standard. It is used, for example, by automatic firmware updates used
166	  on Set-Top-Boxes. It can also be used to access the Internet via the
167	  DVB card, if the network provider supports it.
168
169	  You may want to disable the network support on embedded devices. If
170	  unsure say Y.
171
172# This Kconfig option is used by both PCI and USB drivers
173config TTPCI_EEPROM
174	tristate
175	depends on I2C
176	default n
177
178source "drivers/media/dvb-core/Kconfig"
179
180comment "Media drivers"
181source "drivers/media/rc/Kconfig"
182
183#
184# V4L platform/mem2mem drivers
185#
186
187source "drivers/media/usb/Kconfig"
188source "drivers/media/pci/Kconfig"
189source "drivers/media/platform/Kconfig"
190source "drivers/media/mmc/Kconfig"
191source "drivers/media/radio/Kconfig"
192
193comment "Supported FireWire (IEEE 1394) Adapters"
194	depends on DVB_CORE && FIREWIRE
195source "drivers/media/firewire/Kconfig"
196
197# Common driver options
198source "drivers/media/common/Kconfig"
199
200comment "Media ancillary drivers (tuners, sensors, i2c, spi, frontends)"
201
202#
203# Ancillary drivers (tuners, i2c, spi, frontends)
204#
205
206config MEDIA_SUBDRV_AUTOSELECT
207	bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)"
208	depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_CAMERA_SUPPORT || MEDIA_SDR_SUPPORT
209	depends on HAS_IOMEM
210	select I2C
211	select I2C_MUX
212	default y
213	help
214	  By default, a media driver auto-selects all possible ancillary
215	  devices such as tuners, sensors, video encoders/decoders and
216	  frontends, that are used by any of the supported devices.
217
218	  This is generally the right thing to do, except when there
219	  are strict constraints with regards to the kernel size,
220	  like on embedded systems.
221
222	  Use this option with care, as deselecting ancillary drivers which
223	  are, in fact, necessary will result in the lack of the needed
224	  functionality for your device (it may not tune or may not have
225	  the needed demodulators).
226
227	  If unsure say Y.
228
229config MEDIA_ATTACH
230	bool
231	depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT
232	depends on MODULES
233	default MODULES
234
235source "drivers/media/i2c/Kconfig"
236source "drivers/media/spi/Kconfig"
237source "drivers/media/tuners/Kconfig"
238source "drivers/media/dvb-frontends/Kconfig"
239
240endif # MEDIA_SUPPORT
241