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