Kconfig 7.0 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0-only
L
Linus Torvalds 已提交
2 3 4 5
#
# Multimedia device configuration
#

6 7
source "drivers/media/rc/Kconfig"

8 9
menuconfig MEDIA_SUPPORT
	tristate "Multimedia support"
10
	depends on HAS_IOMEM
11
	help
12 13 14 15
	  If you want to use media devices, including Webcams, Video grabber
	  devices and/or TV devices, V4L2 codecs, etc, enable this option
	  and other options below.

16
	  Additional info and docs are available on the web at
17
	  <https://linuxtv.org>
18

19 20 21
if MEDIA_SUPPORT

config MEDIA_SUPPORT_FILTER
22
	bool "Filter media drivers"
23
	depends on MEDIA_SUPPORT
24 25 26 27 28 29 30 31 32 33 34 35 36 37
	help
	   Configuring the media subsystem can be complex, as there are
	   hundreds of drivers and other config options.

	   This menu offers option that will help the Kernel's config
	   system to hide drivers that are out of the scope of the
	   user needs, and disabling core support for unused APIs.

	   If not selected, all non-optional media core functionality
	   needed to support media drivers will be enabled. Also, all
	   media device drivers should be shown.

menu "Media device types"
	visible if MEDIA_SUPPORT_FILTER
38

39 40 41 42
#
# Multimedia support - automatically enable V4L2 and DVB core
#
config MEDIA_CAMERA_SUPPORT
43
	bool "Cameras and video grabbers"
44
	default y if !MEDIA_SUPPORT_FILTER
45
	help
46 47 48 49 50
	  Enable support for webcams and video grabbers.

	  Say Y when you have a webcam or a video capture grabber board.

config MEDIA_ANALOG_TV_SUPPORT
51
	bool "Analog TV"
52
	default y if !MEDIA_SUPPORT_FILTER
53
	help
54 55
	  Enable analog TV support.

56
	  Say Y when you have a board with analog TV support.
57 58

config MEDIA_DIGITAL_TV_SUPPORT
59
	bool "Digital TV"
60
	default y if !MEDIA_SUPPORT_FILTER
61
	help
62 63
	  Enable digital TV support.

64
	  Say Y when you have a board with digital TV support.
65 66

config MEDIA_RADIO_SUPPORT
67
	bool "AM/FM radio receivers/transmitters"
68
	default y if !MEDIA_SUPPORT_FILTER
69
	help
70 71 72
	  Enable AM/FM radio support.

	  Additional info and docs are available on the web at
73
	  <https://linuxtv.org>
74 75 76

	  Say Y when you have a board with radio support.

77
config MEDIA_SDR_SUPPORT
78
	bool "Software defined radio"
79
	default y if !MEDIA_SUPPORT_FILTER
80
	help
81 82 83 84
	  Enable software defined radio support.

	  Say Y when you have a software defined radio device.

85
config MEDIA_CEC_SUPPORT
86
	bool "HDMI CEC"
87
	default y if !MEDIA_SUPPORT_FILTER
88
	help
89 90
	  Enable support for HDMI CEC (Consumer Electronics Control),
	  which is an optional HDMI feature.
91

92 93
	  Say Y when you have an HDMI receiver, transmitter or a USB CEC
	  adapter that supports HDMI CEC.
94

95
config MEDIA_PLATFORM_SUPPORT
96
	bool "Platform-specific devices"
97
	default y if !MEDIA_SUPPORT_FILTER
98 99 100 101 102 103 104 105 106 107
	help
	  Enable support for complex cameras, codecs, and other hardware
	  that are integrated at the CPU, GPU or on Image Signalling Processor
	  and don't use PCI, USB or Firewire buses.

	  This is found on Embedded hardware (SoC), on V4L2 codecs and
	  on some GPU and newer CPU chipsets.

	  Say Y when you want to be able so see such devices.

108
config MEDIA_TEST_SUPPORT
109
	bool "Test drivers"
110
	default y if !MEDIA_SUPPORT_FILTER
111 112 113 114 115 116 117 118 119 120
	help
	  Those drivers should not be used on production Kernels, but
	  can be useful on debug ones. It enables several dummy drivers
	  that simulate a real hardware. Very useful to test userspace
	  applications and to validate if the subsystem core is doesn't
	  have regressions.

	  Say Y if you want to use some virtual test driver.

	  In case of doubts, say N.
121
	  Say Y when you have a software defined radio device.
122
endmenu # media device types
123

124

125 126
menu "Media core support"
	visible if !MEDIA_SUPPORT_FILTER
127

128 129 130
comment "Video4Linux core enabled to support hybrid TV devices"
	depends on MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI

L
Linus Torvalds 已提交
131
config VIDEO_DEV
132
	tristate
133
	prompt "Video4Linux core" if !(MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI)
134
	default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_PLATFORM_SUPPORT || MEDIA_TEST_SUPPORT || MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI
135 136 137
	help
	  Enables the V4L2 API, used by cameras, analog TV, video grabbers,
	  radio devices and by some input devices.
L
Linus Torvalds 已提交
138

139 140 141 142 143 144 145 146 147
config MEDIA_CONTROLLER
	bool "Media Controller API"
	default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_PLATFORM_SUPPORT
	help
	  Enable the media controller API used to query media devices internal
	  topology and configure it dynamically.

	  This API is mostly used by camera interfaces in embedded platforms.

148 149
#
# DVB Core
150
#	Only enables if one of DTV is selected
151
#
L
Linus Torvalds 已提交
152

153 154 155
comment "Digital TV core enabled to support hybrid TV devices"
	depends on MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI

156
config DVB_CORE
157
	tristate
158
	prompt "Digital TV core"  if !(MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI)
159
	depends on MEDIA_DIGITAL_TV_SUPPORT
160
	depends on (I2C || I2C=n)
161
	select CRC32
162
	help
163 164
	  Enables the DVB API, used by Digital TV devices. Supports several
	  standards, including DVB, ATSC, ISDB and CMDB.
165

166
endmenu # Media core support
167

168 169
#
# Extra per-media API core functionality
170

171
menu "Media core additional options"
172 173
source "drivers/media/v4l2-core/Kconfig"
source "drivers/media/mc/Kconfig"
174
source "drivers/media/dvb-core/Kconfig"
175
source "drivers/media/cec/Kconfig"
176
endmenu
177

178
menu "Media drivers"
179

180 181 182
comment "Drivers filtered as selected at 'Filter media drivers'"
	depends on MEDIA_SUPPORT_FILTER

183
source "drivers/media/usb/Kconfig"
184
source "drivers/media/pci/Kconfig"
185 186
source "drivers/media/radio/Kconfig"

187 188 189
# Common driver options
source "drivers/media/common/Kconfig"

190
if MEDIA_PLATFORM_SUPPORT
191
source "drivers/media/platform/Kconfig"
192
source "drivers/media/test_drivers/Kconfig"
193
source "drivers/media/mmc/Kconfig"
194
endif
L
Linus Torvalds 已提交
195

196 197
source "drivers/media/firewire/Kconfig"

198 199 200
endmenu

menu "Media ancillary drivers (tuners, sensors, i2c, spi, frontends)"
H
Hans Verkuil 已提交
201

202
#
203
# Ancillary drivers (tuners, i2c, spi, frontends)
204 205
#

206
config 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 210 211
	depends on HAS_IOMEM
	select I2C
	select I2C_MUX
212
	default y if !EMBEDDED
213
	help
H
Hans Verkuil 已提交
214 215 216
	  By default, a media driver auto-selects all possible ancillary
	  devices such as tuners, sensors, video encoders/decoders and
	  frontends, that are used by any of the supported devices.
217 218

	  This is generally the right thing to do, except when there
219 220
	  are strict constraints with regards to the kernel size,
	  like on embedded systems.
221

222 223 224
	  Use this option with care, as deselecting ancillary drivers which
	  are, in fact, necessary will result in the lack of the needed
	  functionality for your device (it may not tune or may not have
H
Hans Verkuil 已提交
225
	  the needed demodulators).
226 227 228

	  If unsure say Y.

229
config MEDIA_HIDE_ANCILLARY_SUBDRV
230 231 232
	bool
	depends on MEDIA_SUBDRV_AUTOSELECT && !COMPILE_TEST && !EXPERT
	default y
233

234 235 236 237 238 239
config MEDIA_ATTACH
	bool
	depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT
	depends on MODULES
	default MODULES

240
source "drivers/media/i2c/Kconfig"
241
source "drivers/media/spi/Kconfig"
242
source "drivers/media/tuners/Kconfig"
243 244
source "drivers/media/dvb-frontends/Kconfig"

245 246
endmenu

247
endif # MEDIA_SUPPORT