Kconfig 6.7 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
comment "Multimedia core features"
125

126
#
127 128
# Video4Linux support
#	Only enables if one of the V4L2 types (ATV, webcam, radio) is selected
129 130
#

131 132 133
comment "Video4Linux core enabled to support hybrid TV devices"
	depends on MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI

L
Linus Torvalds 已提交
134
config VIDEO_DEV
135
	tristate
136
	prompt "Video4Linux core" if !(MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI)
137
	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
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
	default y
162
	select CRC32
163

164 165 166
	help


167 168


169 170
source "drivers/media/v4l2-core/Kconfig"
source "drivers/media/mc/Kconfig"
171
source "drivers/media/dvb-core/Kconfig"
172
source "drivers/media/cec/Kconfig"
173

174
comment "Media drivers"
175

176 177 178
comment "Drivers filtered as selected at 'Filter media drivers'"
	depends on MEDIA_SUPPORT_FILTER

179
source "drivers/media/usb/Kconfig"
180
source "drivers/media/pci/Kconfig"
181 182
source "drivers/media/radio/Kconfig"

183 184 185
# Common driver options
source "drivers/media/common/Kconfig"

186
if MEDIA_PLATFORM_SUPPORT
187
source "drivers/media/platform/Kconfig"
188
source "drivers/media/test_drivers/Kconfig"
189
source "drivers/media/mmc/Kconfig"
190
endif
L
Linus Torvalds 已提交
191

192 193
source "drivers/media/firewire/Kconfig"

194
comment "Media ancillary drivers (tuners, sensors, i2c, spi, frontends)"
H
Hans Verkuil 已提交
195

196
#
197
# Ancillary drivers (tuners, i2c, spi, frontends)
198 199
#

200
config MEDIA_SUBDRV_AUTOSELECT
201
	bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)"
202
	depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_CAMERA_SUPPORT || MEDIA_SDR_SUPPORT
203 204 205
	depends on HAS_IOMEM
	select I2C
	select I2C_MUX
206
	default y if !EMBEDDED
207
	help
H
Hans Verkuil 已提交
208 209 210
	  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.
211 212

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

216 217 218
	  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 已提交
219
	  the needed demodulators).
220 221 222

	  If unsure say Y.

223
config MEDIA_HIDE_ANCILLARY_SUBDRV
224 225 226
	bool
	depends on MEDIA_SUBDRV_AUTOSELECT && !COMPILE_TEST && !EXPERT
	default y
227

228 229 230 231 232 233
config MEDIA_ATTACH
	bool
	depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT
	depends on MODULES
	default MODULES

234
source "drivers/media/i2c/Kconfig"
235
source "drivers/media/spi/Kconfig"
236
source "drivers/media/tuners/Kconfig"
237 238
source "drivers/media/dvb-frontends/Kconfig"

239
endif # MEDIA_SUPPORT