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