blob: b1a6874acbcc8c8494d35b46d498759fd9365409 [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
3# Multimedia device configuration
4#
5
Hans Verkuil9177e512017-05-28 05:48:37 -03006config CEC_CORE
7 tristate
8
Hans Verkuile94c3282017-05-28 05:58:04 -03009config CEC_NOTIFIER
Hans Verkuil9177e512017-05-28 05:48:37 -030010 bool
11
Hans Verkuilea5c8ef2017-07-11 03:30:42 -030012config CEC_PIN
13 bool
14
Sean Youngb9e14862017-07-02 15:37:58 -040015source "drivers/media/rc/Kconfig"
16
Randy Dunlapab482a62009-05-18 22:00:34 -030017menuconfig MEDIA_SUPPORT
18 tristate "Multimedia support"
Martin Schwidefskye25df122007-05-10 15:45:57 +020019 depends on HAS_IOMEM
Randy Dunlapab482a62009-05-18 22:00:34 -030020 help
Mauro Carvalho Chehabdee18772020-03-24 10:15:43 +010021 If you want to use media devices, including Webcams, Video grabber
22 devices and/or TV devices, V4L2 codecs, etc, enable this option
23 and other options below.
24
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030025 Additional info and docs are available on the web at
Mauro Carvalho Chehab991ce922015-12-04 10:38:59 -020026 <https://linuxtv.org>
Randy Dunlapab482a62009-05-18 22:00:34 -030027
28if MEDIA_SUPPORT
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -030030comment "Multimedia core support"
31
32#
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030033# Multimedia support - automatically enable V4L2 and DVB core
34#
35config MEDIA_CAMERA_SUPPORT
36 bool "Cameras/video grabbers support"
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -040037 help
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030038 Enable support for webcams and video grabbers.
39
40 Say Y when you have a webcam or a video capture grabber board.
41
42config MEDIA_ANALOG_TV_SUPPORT
43 bool "Analog TV support"
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -040044 help
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030045 Enable analog TV support.
46
Mauro Carvalho Chehaba3b91d82020-03-25 08:36:36 +010047 Say Y when you have a board with analog TV support.
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030048
49config MEDIA_DIGITAL_TV_SUPPORT
50 bool "Digital TV support"
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -040051 help
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030052 Enable digital TV support.
53
Mauro Carvalho Chehaba3b91d82020-03-25 08:36:36 +010054 Say Y when you have a board with digital TV support.
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030055
56config MEDIA_RADIO_SUPPORT
57 bool "AM/FM radio receivers/transmitters support"
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -040058 help
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030059 Enable AM/FM radio support.
60
61 Additional info and docs are available on the web at
Mauro Carvalho Chehab991ce922015-12-04 10:38:59 -020062 <https://linuxtv.org>
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030063
64 Say Y when you have a board with radio support.
65
Antti Palosaari435ef142014-07-12 21:43:12 -030066config MEDIA_SDR_SUPPORT
67 bool "Software defined radio support"
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -040068 help
Antti Palosaari435ef142014-07-12 21:43:12 -030069 Enable software defined radio support.
70
71 Say Y when you have a software defined radio device.
72
Hans Verkuil0dbaceb2016-11-02 08:25:28 -020073config MEDIA_CEC_SUPPORT
Brad Love349da8c2018-05-02 19:19:30 -040074 bool "HDMI CEC support"
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -040075 help
Brad Love349da8c2018-05-02 19:19:30 -040076 Enable support for HDMI CEC (Consumer Electronics Control),
77 which is an optional HDMI feature.
Hans Verkuil0dbaceb2016-11-02 08:25:28 -020078
Brad Love349da8c2018-05-02 19:19:30 -040079 Say Y when you have an HDMI receiver, transmitter or a USB CEC
80 adapter that supports HDMI CEC.
Hans Verkuil0dbaceb2016-11-02 08:25:28 -020081
Mauro Carvalho Chehab06b93642020-03-24 10:27:15 +010082config MEDIA_PLATFORM_SUPPORT
83 bool "Platform-specific devices support"
84 help
85 Enable support for complex cameras, codecs, and other hardware
86 that are integrated at the CPU, GPU or on Image Signalling Processor
87 and don't use PCI, USB or Firewire buses.
88
89 This is found on Embedded hardware (SoC), on V4L2 codecs and
90 on some GPU and newer CPU chipsets.
91
92 Say Y when you want to be able so see such devices.
93
Mauro Carvalho Chehab4b322162020-03-24 10:39:43 +010094config MEDIA_TEST_SUPPORT
95 bool "Test drivers support"
96 help
97 Those drivers should not be used on production Kernels, but
98 can be useful on debug ones. It enables several dummy drivers
99 that simulate a real hardware. Very useful to test userspace
100 applications and to validate if the subsystem core is doesn't
101 have regressions.
102
103 Say Y if you want to use some virtual test driver.
104
105 In case of doubts, say N.
106
Mauro Carvalho Chehab7d5bc692020-03-24 10:14:15 +0100107comment "Multimedia core features"
Sakari Ailus078ab3e2018-12-05 12:23:54 -0500108
Laurent Pinchartcf4b9212009-12-09 08:39:56 -0300109#
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300110# Video4Linux support
111# Only enables if one of the V4L2 types (ATV, webcam, radio) is selected
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300112#
113
Mauro Carvalho Chehaba3b91d82020-03-25 08:36:36 +0100114comment "Video4Linux core enabled to support hybrid TV devices"
115 depends on MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI
116
Linus Torvalds1da177e2005-04-16 15:20:36 -0700117config VIDEO_DEV
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300118 tristate
Mauro Carvalho Chehaba3b91d82020-03-25 08:36:36 +0100119 prompt "Video4Linux core" if !(MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI)
Mauro Carvalho Chehab6268b352020-03-26 15:47:25 +0100120 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
Linus Torvalds1da177e2005-04-16 15:20:36 -0700121
Stanimir Varbanov7cd5a162010-05-21 06:04:24 -0300122config VIDEO_V4L2_SUBDEV_API
Kees Cook51e8cb72012-10-02 11:17:27 -0700123 bool "V4L2 sub-device userspace API"
124 depends on VIDEO_DEV && MEDIA_CONTROLLER
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -0400125 help
Stanimir Varbanov7cd5a162010-05-21 06:04:24 -0300126 Enables the V4L2 sub-device pad-level userspace API used to configure
127 video format, size and frame rate between hardware blocks.
128
129 This API is mostly used by camera interfaces in embedded platforms.
130
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300131#
132# DVB Core
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300133# Only enables if one of DTV is selected
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300134#
Mauro Carvalho Chehabcd41e282006-04-09 15:43:41 -0300135
Mauro Carvalho Chehaba3b91d82020-03-25 08:36:36 +0100136comment "Digital TV core enabled to support hybrid TV devices"
137 depends on MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI
138
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300139config DVB_CORE
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300140 tristate
Mauro Carvalho Chehaba3b91d82020-03-25 08:36:36 +0100141 prompt "Digital TV core" if !(MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI)
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300142 depends on MEDIA_DIGITAL_TV_SUPPORT
Mauro Carvalho Chehab88327302018-03-07 09:51:17 -0500143 depends on (I2C || I2C=n)
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300144 default y
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300145 select CRC32
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300146
Mauro Carvalho Chehab40210532017-12-28 09:24:20 -0500147config DVB_MMAP
148 bool "Enable DVB memory-mapped API (EXPERIMENTAL)"
149 depends on DVB_CORE
Arnd Bergmann85e60bd2018-01-04 05:31:31 -0500150 depends on VIDEO_V4L2=y || VIDEO_V4L2=DVB_CORE
151 select VIDEOBUF2_VMALLOC
Mauro Carvalho Chehab40210532017-12-28 09:24:20 -0500152 help
Michael Ira Krufky2c274762018-01-16 22:16:12 -0500153 This option enables DVB experimental memory-mapped API, which
Mauro Carvalho Chehab40210532017-12-28 09:24:20 -0500154 reduces the number of context switches to read DVB buffers, as
155 the buffers can use mmap() syscalls.
156
157 Support for it is experimental. Use with care. If unsure,
158 say N.
159
Hans Petter Selaskya34ff6c2011-05-23 09:43:35 -0300160config DVB_NET
161 bool "DVB Network Support"
162 default (NET && INET)
Guennadi Liakhovetski8c528d52011-06-10 07:43:26 -0300163 depends on NET && INET && DVB_CORE
Hans Petter Selaskya34ff6c2011-05-23 09:43:35 -0300164 help
Jiri Slaby9a78efc2011-06-16 16:06:56 -0300165 This option enables DVB Network Support which is a part of the DVB
166 standard. It is used, for example, by automatic firmware updates used
167 on Set-Top-Boxes. It can also be used to access the Internet via the
168 DVB card, if the network provider supports it.
Hans Petter Selaskya34ff6c2011-05-23 09:43:35 -0300169
Jiri Slaby9a78efc2011-06-16 16:06:56 -0300170 You may want to disable the network support on embedded devices. If
171 unsure say Y.
Hans Petter Selaskya34ff6c2011-05-23 09:43:35 -0300172
Mauro Carvalho Chehab7d5bc692020-03-24 10:14:15 +0100173source "drivers/media/v4l2-core/Kconfig"
174source "drivers/media/mc/Kconfig"
Mauro Carvalho Chehabf0af8fa2012-08-14 16:07:25 -0300175source "drivers/media/dvb-core/Kconfig"
Mauro Carvalho Chehab7d5bc692020-03-24 10:14:15 +0100176source "drivers/media/cec/Kconfig"
Mauro Carvalho Chehabf0af8fa2012-08-14 16:07:25 -0300177
Mauro Carvalho Chehabc455f5c2012-07-06 09:12:59 -0300178comment "Media drivers"
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300179
Mauro Carvalho Chehab786baec2012-06-14 16:35:56 -0300180source "drivers/media/usb/Kconfig"
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300181source "drivers/media/pci/Kconfig"
Mauro Carvalho Chehab06b93642020-03-24 10:27:15 +0100182source "drivers/media/radio/Kconfig"
183
Mauro Carvalho Chehab7d5bc692020-03-24 10:14:15 +0100184# Common driver options
185source "drivers/media/common/Kconfig"
186
Mauro Carvalho Chehab06b93642020-03-24 10:27:15 +0100187if MEDIA_PLATFORM_SUPPORT
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300188source "drivers/media/platform/Kconfig"
Mauro Carvalho Chehab4b322162020-03-24 10:39:43 +0100189source "drivers/media/test_drivers/Kconfig"
Mauro Carvalho Chehab0013ca82012-06-14 16:36:01 -0300190source "drivers/media/mmc/Kconfig"
Mauro Carvalho Chehab06b93642020-03-24 10:27:15 +0100191endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700192
Mauro Carvalho Chehab616300b2012-06-14 16:35:55 -0300193source "drivers/media/firewire/Kconfig"
194
Hans Verkuil8283a092016-09-15 12:18:14 -0300195comment "Media ancillary drivers (tuners, sensors, i2c, spi, frontends)"
Hans Verkuil5344fe62012-12-22 07:48:58 -0300196
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300197#
Hans Verkuil8283a092016-09-15 12:18:14 -0300198# Ancillary drivers (tuners, i2c, spi, frontends)
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300199#
200
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300201config MEDIA_SUBDRV_AUTOSELECT
Hans Verkuil8283a092016-09-15 12:18:14 -0300202 bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)"
Antti Palosaari435ef142014-07-12 21:43:12 -0300203 depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_CAMERA_SUPPORT || MEDIA_SDR_SUPPORT
Mauro Carvalho Chehab347f7a32013-12-21 05:42:11 -0200204 depends on HAS_IOMEM
205 select I2C
206 select I2C_MUX
Ezequiel Garcia24f6f932019-07-15 17:23:15 -0400207 default y if !EMBEDDED
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300208 help
Hans Verkuil5344fe62012-12-22 07:48:58 -0300209 By default, a media driver auto-selects all possible ancillary
210 devices such as tuners, sensors, video encoders/decoders and
211 frontends, that are used by any of the supported devices.
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300212
213 This is generally the right thing to do, except when there
Mauro Carvalho Chehab2c76a122012-10-17 16:09:23 -0300214 are strict constraints with regards to the kernel size,
215 like on embedded systems.
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300216
Mauro Carvalho Chehab2c76a122012-10-17 16:09:23 -0300217 Use this option with care, as deselecting ancillary drivers which
218 are, in fact, necessary will result in the lack of the needed
219 functionality for your device (it may not tune or may not have
Hans Verkuil5344fe62012-12-22 07:48:58 -0300220 the needed demodulators).
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300221
222 If unsure say Y.
223
Ezequiel Garcia4fa4ef32019-07-27 10:31:29 -0300224config MEDIA_HIDE_ANCILLARY_SUBDRV
Krzysztof Kozlowski1498dfb2019-11-21 04:19:37 +0100225 bool
226 depends on MEDIA_SUBDRV_AUTOSELECT && !COMPILE_TEST && !EXPERT
227 default y
Ezequiel Garcia4fa4ef32019-07-27 10:31:29 -0300228
Mauro Carvalho Chehabbb69ee22013-06-20 10:35:53 -0300229config 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
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300235source "drivers/media/i2c/Kconfig"
Hans Verkuil8283a092016-09-15 12:18:14 -0300236source "drivers/media/spi/Kconfig"
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300237source "drivers/media/tuners/Kconfig"
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300238source "drivers/media/dvb-frontends/Kconfig"
239
Randy Dunlapab482a62009-05-18 22:00:34 -0300240endif # MEDIA_SUPPORT