blob: b36a4133286709edc7595bf773bbd30c959fe498 [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 Chehabb4c184e2012-05-28 08:17:47 -030021 If you want to use Webcams, Video grabber devices and/or TV devices
Randy Dunlapab482a62009-05-18 22:00:34 -030022 enable this option and other options below.
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030023 Additional info and docs are available on the web at
Mauro Carvalho Chehab991ce922015-12-04 10:38:59 -020024 <https://linuxtv.org>
Randy Dunlapab482a62009-05-18 22:00:34 -030025
26if MEDIA_SUPPORT
Linus Torvalds1da177e2005-04-16 15:20:36 -070027
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -030028comment "Multimedia core support"
29
30#
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030031# Multimedia support - automatically enable V4L2 and DVB core
32#
33config MEDIA_CAMERA_SUPPORT
34 bool "Cameras/video grabbers support"
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -040035 help
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030036 Enable support for webcams and video grabbers.
37
38 Say Y when you have a webcam or a video capture grabber board.
39
40config MEDIA_ANALOG_TV_SUPPORT
41 bool "Analog TV support"
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -040042 help
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030043 Enable analog TV support.
44
45 Say Y when you have a TV board with analog support or with a
46 hybrid analog/digital TV chipset.
47
48 Note: There are several DVB cards that are based on chips that
49 support both analog and digital TV. Disabling this option
50 will disable support for them.
51
52config MEDIA_DIGITAL_TV_SUPPORT
53 bool "Digital TV support"
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -040054 help
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030055 Enable digital TV support.
56
57 Say Y when you have a board with digital support or a board with
58 hybrid digital TV and analog TV.
59
60config MEDIA_RADIO_SUPPORT
61 bool "AM/FM radio receivers/transmitters support"
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -040062 help
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030063 Enable AM/FM radio support.
64
65 Additional info and docs are available on the web at
Mauro Carvalho Chehab991ce922015-12-04 10:38:59 -020066 <https://linuxtv.org>
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030067
68 Say Y when you have a board with radio support.
69
70 Note: There are several TV cards that are based on chips that
71 support radio reception. Disabling this option will
72 disable support for them.
73
Antti Palosaari435ef142014-07-12 21:43:12 -030074config MEDIA_SDR_SUPPORT
75 bool "Software defined radio support"
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -040076 help
Antti Palosaari435ef142014-07-12 21:43:12 -030077 Enable software defined radio support.
78
79 Say Y when you have a software defined radio device.
80
Hans Verkuil0dbaceb2016-11-02 08:25:28 -020081config MEDIA_CEC_SUPPORT
Brad Love349da8c2018-05-02 19:19:30 -040082 bool "HDMI CEC support"
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -040083 help
Brad Love349da8c2018-05-02 19:19:30 -040084 Enable support for HDMI CEC (Consumer Electronics Control),
85 which is an optional HDMI feature.
Hans Verkuil0dbaceb2016-11-02 08:25:28 -020086
Brad Love349da8c2018-05-02 19:19:30 -040087 Say Y when you have an HDMI receiver, transmitter or a USB CEC
88 adapter that supports HDMI CEC.
Hans Verkuil0dbaceb2016-11-02 08:25:28 -020089
Hans Verkuil56a263a2017-04-17 07:44:35 -030090source "drivers/media/cec/Kconfig"
Hans Verkuil6917a7b2016-11-14 11:55:20 -020091
Hans Verkuilc612e54f2019-05-02 09:42:31 -040092source "drivers/media/mc/Kconfig"
Sakari Ailus078ab3e2018-12-05 12:23:54 -050093
Laurent Pinchartcf4b9212009-12-09 08:39:56 -030094#
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030095# Video4Linux support
96# Only enables if one of the V4L2 types (ATV, webcam, radio) is selected
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -030097#
98
Linus Torvalds1da177e2005-04-16 15:20:36 -070099config VIDEO_DEV
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300100 tristate
101 depends on MEDIA_SUPPORT
Antti Palosaari435ef142014-07-12 21:43:12 -0300102 depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300103 default y
Linus Torvalds1da177e2005-04-16 15:20:36 -0700104
Stanimir Varbanov7cd5a162010-05-21 06:04:24 -0300105config VIDEO_V4L2_SUBDEV_API
Kees Cook51e8cb72012-10-02 11:17:27 -0700106 bool "V4L2 sub-device userspace API"
107 depends on VIDEO_DEV && MEDIA_CONTROLLER
Mauro Carvalho Chehabb60a5b82019-03-20 06:39:44 -0400108 help
Stanimir Varbanov7cd5a162010-05-21 06:04:24 -0300109 Enables the V4L2 sub-device pad-level userspace API used to configure
110 video format, size and frame rate between hardware blocks.
111
112 This API is mostly used by camera interfaces in embedded platforms.
113
Mauro Carvalho Chehabf0af8fa2012-08-14 16:07:25 -0300114source "drivers/media/v4l2-core/Kconfig"
115
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300116#
117# DVB Core
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300118# Only enables if one of DTV is selected
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300119#
Mauro Carvalho Chehabcd41e282006-04-09 15:43:41 -0300120
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300121config DVB_CORE
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300122 tristate
123 depends on MEDIA_SUPPORT
124 depends on MEDIA_DIGITAL_TV_SUPPORT
Mauro Carvalho Chehab88327302018-03-07 09:51:17 -0500125 depends on (I2C || I2C=n)
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300126 default y
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300127 select CRC32
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300128
Mauro Carvalho Chehab40210532017-12-28 09:24:20 -0500129config DVB_MMAP
130 bool "Enable DVB memory-mapped API (EXPERIMENTAL)"
131 depends on DVB_CORE
Arnd Bergmann85e60bd2018-01-04 05:31:31 -0500132 depends on VIDEO_V4L2=y || VIDEO_V4L2=DVB_CORE
133 select VIDEOBUF2_VMALLOC
Mauro Carvalho Chehab40210532017-12-28 09:24:20 -0500134 help
Michael Ira Krufky2c274762018-01-16 22:16:12 -0500135 This option enables DVB experimental memory-mapped API, which
Mauro Carvalho Chehab40210532017-12-28 09:24:20 -0500136 reduces the number of context switches to read DVB buffers, as
137 the buffers can use mmap() syscalls.
138
139 Support for it is experimental. Use with care. If unsure,
140 say N.
141
Hans Petter Selaskya34ff6c2011-05-23 09:43:35 -0300142config DVB_NET
143 bool "DVB Network Support"
144 default (NET && INET)
Guennadi Liakhovetski8c528d52011-06-10 07:43:26 -0300145 depends on NET && INET && DVB_CORE
Hans Petter Selaskya34ff6c2011-05-23 09:43:35 -0300146 help
Jiri Slaby9a78efc2011-06-16 16:06:56 -0300147 This option enables DVB Network Support which is a part of the DVB
148 standard. It is used, for example, by automatic firmware updates used
149 on Set-Top-Boxes. It can also be used to access the Internet via the
150 DVB card, if the network provider supports it.
Hans Petter Selaskya34ff6c2011-05-23 09:43:35 -0300151
Jiri Slaby9a78efc2011-06-16 16:06:56 -0300152 You may want to disable the network support on embedded devices. If
153 unsure say Y.
Hans Petter Selaskya34ff6c2011-05-23 09:43:35 -0300154
Mauro Carvalho Chehab5d92bbe2012-12-27 14:43:41 -0200155# This Kconfig option is used by both PCI and USB drivers
156config TTPCI_EEPROM
Mauro Carvalho Chehabbb69ee22013-06-20 10:35:53 -0300157 tristate
158 depends on I2C
Mauro Carvalho Chehab5d92bbe2012-12-27 14:43:41 -0200159
Mauro Carvalho Chehabf0af8fa2012-08-14 16:07:25 -0300160source "drivers/media/dvb-core/Kconfig"
161
Mauro Carvalho Chehabc455f5c2012-07-06 09:12:59 -0300162comment "Media drivers"
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300163
164#
Mauro Carvalho Chehabcb7a01a2012-08-14 16:23:43 -0300165# V4L platform/mem2mem drivers
166#
Linus Torvalds1da177e2005-04-16 15:20:36 -0700167
Mauro Carvalho Chehab786baec2012-06-14 16:35:56 -0300168source "drivers/media/usb/Kconfig"
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300169source "drivers/media/pci/Kconfig"
170source "drivers/media/platform/Kconfig"
Mauro Carvalho Chehab0013ca82012-06-14 16:36:01 -0300171source "drivers/media/mmc/Kconfig"
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300172source "drivers/media/radio/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700173
Mauro Carvalho Chehab616300b2012-06-14 16:35:55 -0300174comment "Supported FireWire (IEEE 1394) Adapters"
175 depends on DVB_CORE && FIREWIRE
176source "drivers/media/firewire/Kconfig"
177
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300178# Common driver options
Mauro Carvalho Chehab3785bc12012-06-14 16:35:58 -0300179source "drivers/media/common/Kconfig"
180
Hans Verkuil8283a092016-09-15 12:18:14 -0300181comment "Media ancillary drivers (tuners, sensors, i2c, spi, frontends)"
Hans Verkuil5344fe62012-12-22 07:48:58 -0300182
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300183#
Hans Verkuil8283a092016-09-15 12:18:14 -0300184# Ancillary drivers (tuners, i2c, spi, frontends)
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300185#
186
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300187config MEDIA_SUBDRV_AUTOSELECT
Hans Verkuil8283a092016-09-15 12:18:14 -0300188 bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)"
Antti Palosaari435ef142014-07-12 21:43:12 -0300189 depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_CAMERA_SUPPORT || MEDIA_SDR_SUPPORT
Mauro Carvalho Chehab347f7a32013-12-21 05:42:11 -0200190 depends on HAS_IOMEM
191 select I2C
192 select I2C_MUX
Ezequiel Garcia24f6f932019-07-15 17:23:15 -0400193 default y if !EMBEDDED
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300194 help
Hans Verkuil5344fe62012-12-22 07:48:58 -0300195 By default, a media driver auto-selects all possible ancillary
196 devices such as tuners, sensors, video encoders/decoders and
197 frontends, that are used by any of the supported devices.
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300198
199 This is generally the right thing to do, except when there
Mauro Carvalho Chehab2c76a122012-10-17 16:09:23 -0300200 are strict constraints with regards to the kernel size,
201 like on embedded systems.
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300202
Mauro Carvalho Chehab2c76a122012-10-17 16:09:23 -0300203 Use this option with care, as deselecting ancillary drivers which
204 are, in fact, necessary will result in the lack of the needed
205 functionality for your device (it may not tune or may not have
Hans Verkuil5344fe62012-12-22 07:48:58 -0300206 the needed demodulators).
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300207
208 If unsure say Y.
209
Ezequiel Garcia4fa4ef32019-07-27 10:31:29 -0300210config MEDIA_HIDE_ANCILLARY_SUBDRV
211 bool
212 depends on MEDIA_SUBDRV_AUTOSELECT && !COMPILE_TEST && !EXPERT
213 default y
214
Mauro Carvalho Chehabbb69ee22013-06-20 10:35:53 -0300215config MEDIA_ATTACH
216 bool
217 depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT
218 depends on MODULES
219 default MODULES
220
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300221source "drivers/media/i2c/Kconfig"
Hans Verkuil8283a092016-09-15 12:18:14 -0300222source "drivers/media/spi/Kconfig"
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300223source "drivers/media/tuners/Kconfig"
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300224source "drivers/media/dvb-frontends/Kconfig"
225
Randy Dunlapab482a62009-05-18 22:00:34 -0300226endif # MEDIA_SUPPORT