blob: 86c1a190d94684d1fef022227a138b557655bb55 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Multimedia device configuration
3#
4
Hans Verkuil9177e512017-05-28 05:48:37 -03005config CEC_CORE
6 tristate
7
Hans Verkuile94c3282017-05-28 05:58:04 -03008config CEC_NOTIFIER
Hans Verkuil9177e512017-05-28 05:48:37 -03009 bool
10
Hans Verkuilea5c8ef2017-07-11 03:30:42 -030011config CEC_PIN
12 bool
13
Sean Youngb9e14862017-07-02 15:37:58 -040014source "drivers/media/rc/Kconfig"
15
Randy Dunlapab482a62009-05-18 22:00:34 -030016menuconfig MEDIA_SUPPORT
17 tristate "Multimedia support"
Martin Schwidefskye25df122007-05-10 15:45:57 +020018 depends on HAS_IOMEM
Randy Dunlapab482a62009-05-18 22:00:34 -030019 help
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030020 If you want to use Webcams, Video grabber devices and/or TV devices
Randy Dunlapab482a62009-05-18 22:00:34 -030021 enable this option and other options below.
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030022 Additional info and docs are available on the web at
Mauro Carvalho Chehab991ce922015-12-04 10:38:59 -020023 <https://linuxtv.org>
Randy Dunlapab482a62009-05-18 22:00:34 -030024
25if MEDIA_SUPPORT
Linus Torvalds1da177e2005-04-16 15:20:36 -070026
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -030027comment "Multimedia core support"
28
29#
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030030# 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
Mauro Carvalho Chehab991ce922015-12-04 10:38:59 -020065 <https://linuxtv.org>
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030066
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
Antti Palosaari435ef142014-07-12 21:43:12 -030073config 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
Hans Verkuil0dbaceb2016-11-02 08:25:28 -020080config MEDIA_CEC_SUPPORT
Hans Verkuil56a263a2017-04-17 07:44:35 -030081 bool "HDMI CEC support"
82 ---help---
Mauro Carvalho Chehab4a3fad72018-01-04 06:47:28 -050083 Enable support for HDMI CEC (Consumer Electronics Control),
84 which is an optional HDMI feature.
Hans Verkuil0dbaceb2016-11-02 08:25:28 -020085
Mauro Carvalho Chehab4a3fad72018-01-04 06:47:28 -050086 Say Y when you have an HDMI receiver, transmitter or a USB CEC
87 adapter that supports HDMI CEC.
Hans Verkuil0dbaceb2016-11-02 08:25:28 -020088
Hans Verkuil56a263a2017-04-17 07:44:35 -030089source "drivers/media/cec/Kconfig"
Hans Verkuil6917a7b2016-11-14 11:55:20 -020090
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030091#
Laurent Pinchartcf4b9212009-12-09 08:39:56 -030092# Media controller
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -030093# Selectable only for webcam/grabbers, as other drivers don't use it
Laurent Pinchartcf4b9212009-12-09 08:39:56 -030094#
95
96config MEDIA_CONTROLLER
Kees Cook51e8cb72012-10-02 11:17:27 -070097 bool "Media Controller API"
Mauro Carvalho Chehaba0246e02015-01-02 12:19:51 -030098 depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT
Laurent Pinchartcf4b9212009-12-09 08:39:56 -030099 ---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
Mauro Carvalho Chehaba0246e02015-01-02 12:19:51 -0300105config MEDIA_CONTROLLER_DVB
Mauro Carvalho Chehabc3f22502015-05-06 11:26:13 -0300106 bool "Enable Media controller for DVB (EXPERIMENTAL)"
Mauro Carvalho Chehaba4afb3e2016-11-18 17:47:41 -0200107 depends on MEDIA_CONTROLLER && DVB_CORE
Mauro Carvalho Chehaba0246e02015-01-02 12:19:51 -0300108 ---help---
109 Enable the media controller API support for DVB.
110
111 This is currently experimental.
112
Laurent Pinchartcf4b9212009-12-09 08:39:56 -0300113#
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300114# Video4Linux support
115# Only enables if one of the V4L2 types (ATV, webcam, radio) is selected
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300116#
117
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118config VIDEO_DEV
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300119 tristate
120 depends on MEDIA_SUPPORT
Antti Palosaari435ef142014-07-12 21:43:12 -0300121 depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300122 default y
Linus Torvalds1da177e2005-04-16 15:20:36 -0700123
Stanimir Varbanov7cd5a162010-05-21 06:04:24 -0300124config VIDEO_V4L2_SUBDEV_API
Kees Cook51e8cb72012-10-02 11:17:27 -0700125 bool "V4L2 sub-device userspace API"
126 depends on VIDEO_DEV && MEDIA_CONTROLLER
Stanimir Varbanov7cd5a162010-05-21 06:04:24 -0300127 ---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
Mauro Carvalho Chehabf0af8fa2012-08-14 16:07:25 -0300133source "drivers/media/v4l2-core/Kconfig"
134
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300135#
136# DVB Core
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300137# Only enables if one of DTV is selected
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300138#
Mauro Carvalho Chehabcd41e282006-04-09 15:43:41 -0300139
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300140config DVB_CORE
Mauro Carvalho Chehabb4c184e2012-05-28 08:17:47 -0300141 tristate
142 depends on MEDIA_SUPPORT
143 depends on MEDIA_DIGITAL_TV_SUPPORT
144 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 default n
153 help
Michael Ira Krufky2c274762018-01-16 22:16:12 -0500154 This option enables DVB experimental memory-mapped API, which
Mauro Carvalho Chehab40210532017-12-28 09:24:20 -0500155 reduces the number of context switches to read DVB buffers, as
156 the buffers can use mmap() syscalls.
157
158 Support for it is experimental. Use with care. If unsure,
159 say N.
160
Hans Petter Selaskya34ff6c2011-05-23 09:43:35 -0300161config DVB_NET
162 bool "DVB Network Support"
163 default (NET && INET)
Guennadi Liakhovetski8c528d52011-06-10 07:43:26 -0300164 depends on NET && INET && DVB_CORE
Hans Petter Selaskya34ff6c2011-05-23 09:43:35 -0300165 help
Jiri Slaby9a78efc2011-06-16 16:06:56 -0300166 This option enables DVB Network Support which is a part of the DVB
167 standard. It is used, for example, by automatic firmware updates used
168 on Set-Top-Boxes. It can also be used to access the Internet via the
169 DVB card, if the network provider supports it.
Hans Petter Selaskya34ff6c2011-05-23 09:43:35 -0300170
Jiri Slaby9a78efc2011-06-16 16:06:56 -0300171 You may want to disable the network support on embedded devices. If
172 unsure say Y.
Hans Petter Selaskya34ff6c2011-05-23 09:43:35 -0300173
Mauro Carvalho Chehab5d92bbe2012-12-27 14:43:41 -0200174# This Kconfig option is used by both PCI and USB drivers
175config TTPCI_EEPROM
Mauro Carvalho Chehabbb69ee22013-06-20 10:35:53 -0300176 tristate
177 depends on I2C
178 default n
Mauro Carvalho Chehab5d92bbe2012-12-27 14:43:41 -0200179
Mauro Carvalho Chehabf0af8fa2012-08-14 16:07:25 -0300180source "drivers/media/dvb-core/Kconfig"
181
Mauro Carvalho Chehabc455f5c2012-07-06 09:12:59 -0300182comment "Media drivers"
Mauro Carvalho Chehab7c91f062008-04-29 21:38:44 -0300183
184#
Mauro Carvalho Chehabcb7a01a2012-08-14 16:23:43 -0300185# V4L platform/mem2mem drivers
186#
Linus Torvalds1da177e2005-04-16 15:20:36 -0700187
Mauro Carvalho Chehab786baec2012-06-14 16:35:56 -0300188source "drivers/media/usb/Kconfig"
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300189source "drivers/media/pci/Kconfig"
190source "drivers/media/platform/Kconfig"
Mauro Carvalho Chehab0013ca82012-06-14 16:36:01 -0300191source "drivers/media/mmc/Kconfig"
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300192source "drivers/media/radio/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700193
Mauro Carvalho Chehab616300b2012-06-14 16:35:55 -0300194comment "Supported FireWire (IEEE 1394) Adapters"
195 depends on DVB_CORE && FIREWIRE
196source "drivers/media/firewire/Kconfig"
197
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300198# Common driver options
Mauro Carvalho Chehab3785bc12012-06-14 16:35:58 -0300199source "drivers/media/common/Kconfig"
200
Hans Verkuil8283a092016-09-15 12:18:14 -0300201comment "Media ancillary drivers (tuners, sensors, i2c, spi, frontends)"
Hans Verkuil5344fe62012-12-22 07:48:58 -0300202
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300203#
Hans Verkuil8283a092016-09-15 12:18:14 -0300204# Ancillary drivers (tuners, i2c, spi, frontends)
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300205#
206
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300207config MEDIA_SUBDRV_AUTOSELECT
Hans Verkuil8283a092016-09-15 12:18:14 -0300208 bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)"
Antti Palosaari435ef142014-07-12 21:43:12 -0300209 depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_CAMERA_SUPPORT || MEDIA_SDR_SUPPORT
Mauro Carvalho Chehab347f7a32013-12-21 05:42:11 -0200210 depends on HAS_IOMEM
211 select I2C
212 select I2C_MUX
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300213 default y
214 help
Hans Verkuil5344fe62012-12-22 07:48:58 -0300215 By default, a media driver auto-selects all possible ancillary
216 devices such as tuners, sensors, video encoders/decoders and
217 frontends, that are used by any of the supported devices.
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300218
219 This is generally the right thing to do, except when there
Mauro Carvalho Chehab2c76a122012-10-17 16:09:23 -0300220 are strict constraints with regards to the kernel size,
221 like on embedded systems.
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300222
Mauro Carvalho Chehab2c76a122012-10-17 16:09:23 -0300223 Use this option with care, as deselecting ancillary drivers which
224 are, in fact, necessary will result in the lack of the needed
225 functionality for your device (it may not tune or may not have
Hans Verkuil5344fe62012-12-22 07:48:58 -0300226 the needed demodulators).
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300227
228 If unsure say Y.
229
Mauro Carvalho Chehabbb69ee22013-06-20 10:35:53 -0300230config MEDIA_ATTACH
231 bool
232 depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT
233 depends on MODULES
234 default MODULES
235
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300236source "drivers/media/i2c/Kconfig"
Hans Verkuil8283a092016-09-15 12:18:14 -0300237source "drivers/media/spi/Kconfig"
Mauro Carvalho Chehabfccea742012-08-20 14:48:02 -0300238source "drivers/media/tuners/Kconfig"
Mauro Carvalho Chehab3c8c09b2012-08-20 10:02:05 -0300239source "drivers/media/dvb-frontends/Kconfig"
240
Randy Dunlapab482a62009-05-18 22:00:34 -0300241endif # MEDIA_SUPPORT