1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 21da177e4SLinus Torvalds# 31da177e4SLinus Torvalds# Multimedia device configuration 41da177e4SLinus Torvalds# 51da177e4SLinus Torvalds 69177e51dSHans Verkuilconfig CEC_CORE 79177e51dSHans Verkuil tristate 89177e51dSHans Verkuil 9e94c3281SHans Verkuilconfig CEC_NOTIFIER 109177e51dSHans Verkuil bool 119177e51dSHans Verkuil 12ea5c8ef2SHans Verkuilconfig CEC_PIN 13ea5c8ef2SHans Verkuil bool 14ea5c8ef2SHans Verkuil 15b9e1486eSSean Youngsource "drivers/media/rc/Kconfig" 16b9e1486eSSean Young 17ab482a6cSRandy Dunlapmenuconfig MEDIA_SUPPORT 18ab482a6cSRandy Dunlap tristate "Multimedia support" 19e25df120SMartin Schwidefsky depends on HAS_IOMEM 20ab482a6cSRandy Dunlap help 21dee1877dSMauro Carvalho Chehab If you want to use media devices, including Webcams, Video grabber 22dee1877dSMauro Carvalho Chehab devices and/or TV devices, V4L2 codecs, etc, enable this option 23dee1877dSMauro Carvalho Chehab and other options below. 24dee1877dSMauro Carvalho Chehab 25b4c184e5SMauro Carvalho Chehab Additional info and docs are available on the web at 26991ce92fSMauro Carvalho Chehab <https://linuxtv.org> 27ab482a6cSRandy Dunlap 28ab482a6cSRandy Dunlapif MEDIA_SUPPORT 291da177e4SLinus Torvalds 307c91f062SMauro Carvalho Chehabcomment "Multimedia core support" 317c91f062SMauro Carvalho Chehab 327c91f062SMauro Carvalho Chehab# 33b4c184e5SMauro Carvalho Chehab# Multimedia support - automatically enable V4L2 and DVB core 34b4c184e5SMauro Carvalho Chehab# 35b4c184e5SMauro Carvalho Chehabconfig MEDIA_CAMERA_SUPPORT 36b4c184e5SMauro Carvalho Chehab bool "Cameras/video grabbers support" 37b60a5b8dSMauro Carvalho Chehab help 38b4c184e5SMauro Carvalho Chehab Enable support for webcams and video grabbers. 39b4c184e5SMauro Carvalho Chehab 40b4c184e5SMauro Carvalho Chehab Say Y when you have a webcam or a video capture grabber board. 41b4c184e5SMauro Carvalho Chehab 42b4c184e5SMauro Carvalho Chehabconfig MEDIA_ANALOG_TV_SUPPORT 43b4c184e5SMauro Carvalho Chehab bool "Analog TV support" 44b60a5b8dSMauro Carvalho Chehab help 45b4c184e5SMauro Carvalho Chehab Enable analog TV support. 46b4c184e5SMauro Carvalho Chehab 47b4c184e5SMauro Carvalho Chehab Say Y when you have a TV board with analog support or with a 48b4c184e5SMauro Carvalho Chehab hybrid analog/digital TV chipset. 49b4c184e5SMauro Carvalho Chehab 50b4c184e5SMauro Carvalho Chehab Note: There are several DVB cards that are based on chips that 51b4c184e5SMauro Carvalho Chehab support both analog and digital TV. Disabling this option 52b4c184e5SMauro Carvalho Chehab will disable support for them. 53b4c184e5SMauro Carvalho Chehab 54b4c184e5SMauro Carvalho Chehabconfig MEDIA_DIGITAL_TV_SUPPORT 55b4c184e5SMauro Carvalho Chehab bool "Digital TV support" 56b60a5b8dSMauro Carvalho Chehab help 57b4c184e5SMauro Carvalho Chehab Enable digital TV support. 58b4c184e5SMauro Carvalho Chehab 59b4c184e5SMauro Carvalho Chehab Say Y when you have a board with digital support or a board with 60b4c184e5SMauro Carvalho Chehab hybrid digital TV and analog TV. 61b4c184e5SMauro Carvalho Chehab 62b4c184e5SMauro Carvalho Chehabconfig MEDIA_RADIO_SUPPORT 63b4c184e5SMauro Carvalho Chehab bool "AM/FM radio receivers/transmitters support" 64b60a5b8dSMauro Carvalho Chehab help 65b4c184e5SMauro Carvalho Chehab Enable AM/FM radio support. 66b4c184e5SMauro Carvalho Chehab 67b4c184e5SMauro Carvalho Chehab Additional info and docs are available on the web at 68991ce92fSMauro Carvalho Chehab <https://linuxtv.org> 69b4c184e5SMauro Carvalho Chehab 70b4c184e5SMauro Carvalho Chehab Say Y when you have a board with radio support. 71b4c184e5SMauro Carvalho Chehab 72b4c184e5SMauro Carvalho Chehab Note: There are several TV cards that are based on chips that 73b4c184e5SMauro Carvalho Chehab support radio reception. Disabling this option will 74b4c184e5SMauro Carvalho Chehab disable support for them. 75b4c184e5SMauro Carvalho Chehab 76435ef148SAntti Palosaariconfig MEDIA_SDR_SUPPORT 77435ef148SAntti Palosaari bool "Software defined radio support" 78b60a5b8dSMauro Carvalho Chehab help 79435ef148SAntti Palosaari Enable software defined radio support. 80435ef148SAntti Palosaari 81435ef148SAntti Palosaari Say Y when you have a software defined radio device. 82435ef148SAntti Palosaari 830dbacebeSHans Verkuilconfig MEDIA_CEC_SUPPORT 840dbacebeSHans Verkuil bool "HDMI CEC support" 85b60a5b8dSMauro Carvalho Chehab help 860dbacebeSHans Verkuil Enable support for HDMI CEC (Consumer Electronics Control), 870dbacebeSHans Verkuil which is an optional HDMI feature. 880dbacebeSHans Verkuil 890dbacebeSHans Verkuil Say Y when you have an HDMI receiver, transmitter or a USB CEC 900dbacebeSHans Verkuil adapter that supports HDMI CEC. 910dbacebeSHans Verkuil 9206b93644SMauro Carvalho Chehabconfig MEDIA_PLATFORM_SUPPORT 9306b93644SMauro Carvalho Chehab bool "Platform-specific devices support" 9406b93644SMauro Carvalho Chehab help 9506b93644SMauro Carvalho Chehab Enable support for complex cameras, codecs, and other hardware 9606b93644SMauro Carvalho Chehab that are integrated at the CPU, GPU or on Image Signalling Processor 9706b93644SMauro Carvalho Chehab and don't use PCI, USB or Firewire buses. 9806b93644SMauro Carvalho Chehab 9906b93644SMauro Carvalho Chehab This is found on Embedded hardware (SoC), on V4L2 codecs and 10006b93644SMauro Carvalho Chehab on some GPU and newer CPU chipsets. 10106b93644SMauro Carvalho Chehab 10206b93644SMauro Carvalho Chehab Say Y when you want to be able so see such devices. 10306b93644SMauro Carvalho Chehab 10456a263aaSHans Verkuilsource "drivers/media/cec/Kconfig" 1056917a7b7SHans Verkuil 106c612e54fSHans Verkuilsource "drivers/media/mc/Kconfig" 107078ab3eaSSakari Ailus 108cf4b9211SLaurent Pinchart# 109b4c184e5SMauro Carvalho Chehab# Video4Linux support 110b4c184e5SMauro Carvalho Chehab# Only enables if one of the V4L2 types (ATV, webcam, radio) is selected 1117c91f062SMauro Carvalho Chehab# 1127c91f062SMauro Carvalho Chehab 1131da177e4SLinus Torvaldsconfig VIDEO_DEV 114b4c184e5SMauro Carvalho Chehab tristate 115b4c184e5SMauro Carvalho Chehab depends on MEDIA_SUPPORT 116a19f228bSMauro Carvalho Chehab default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_PLATFORM_SUPPORT 1171da177e4SLinus Torvalds 1187cd5a16bSStanimir Varbanovconfig VIDEO_V4L2_SUBDEV_API 11951e8cb74SKees Cook bool "V4L2 sub-device userspace API" 12051e8cb74SKees Cook depends on VIDEO_DEV && MEDIA_CONTROLLER 121b60a5b8dSMauro Carvalho Chehab help 1227cd5a16bSStanimir Varbanov Enables the V4L2 sub-device pad-level userspace API used to configure 1237cd5a16bSStanimir Varbanov video format, size and frame rate between hardware blocks. 1247cd5a16bSStanimir Varbanov 1257cd5a16bSStanimir Varbanov This API is mostly used by camera interfaces in embedded platforms. 1267cd5a16bSStanimir Varbanov 127f0af8fa4SMauro Carvalho Chehabsource "drivers/media/v4l2-core/Kconfig" 128f0af8fa4SMauro Carvalho Chehab 1297c91f062SMauro Carvalho Chehab# 1307c91f062SMauro Carvalho Chehab# DVB Core 131b4c184e5SMauro Carvalho Chehab# Only enables if one of DTV is selected 1327c91f062SMauro Carvalho Chehab# 133cd41e28eSMauro Carvalho Chehab 1347c91f062SMauro Carvalho Chehabconfig DVB_CORE 135b4c184e5SMauro Carvalho Chehab tristate 136b4c184e5SMauro Carvalho Chehab depends on MEDIA_SUPPORT 137b4c184e5SMauro Carvalho Chehab depends on MEDIA_DIGITAL_TV_SUPPORT 13888327305SMauro Carvalho Chehab depends on (I2C || I2C=n) 139b4c184e5SMauro Carvalho Chehab default y 1407c91f062SMauro Carvalho Chehab select CRC32 1417c91f062SMauro Carvalho Chehab 1424021053eSMauro Carvalho Chehabconfig DVB_MMAP 1434021053eSMauro Carvalho Chehab bool "Enable DVB memory-mapped API (EXPERIMENTAL)" 1444021053eSMauro Carvalho Chehab depends on DVB_CORE 14585e60bd7SArnd Bergmann depends on VIDEO_V4L2=y || VIDEO_V4L2=DVB_CORE 14685e60bd7SArnd Bergmann select VIDEOBUF2_VMALLOC 1474021053eSMauro Carvalho Chehab help 1482c27476eSMichael Ira Krufky This option enables DVB experimental memory-mapped API, which 1494021053eSMauro Carvalho Chehab reduces the number of context switches to read DVB buffers, as 1504021053eSMauro Carvalho Chehab the buffers can use mmap() syscalls. 1514021053eSMauro Carvalho Chehab 1524021053eSMauro Carvalho Chehab Support for it is experimental. Use with care. If unsure, 1534021053eSMauro Carvalho Chehab say N. 1544021053eSMauro Carvalho Chehab 155a34ff6cdSHans Petter Selaskyconfig DVB_NET 156a34ff6cdSHans Petter Selasky bool "DVB Network Support" 157a34ff6cdSHans Petter Selasky default (NET && INET) 1588c528d5eSGuennadi Liakhovetski depends on NET && INET && DVB_CORE 159a34ff6cdSHans Petter Selasky help 1609a78efc8SJiri Slaby This option enables DVB Network Support which is a part of the DVB 1619a78efc8SJiri Slaby standard. It is used, for example, by automatic firmware updates used 1629a78efc8SJiri Slaby on Set-Top-Boxes. It can also be used to access the Internet via the 1639a78efc8SJiri Slaby DVB card, if the network provider supports it. 164a34ff6cdSHans Petter Selasky 1659a78efc8SJiri Slaby You may want to disable the network support on embedded devices. If 1669a78efc8SJiri Slaby unsure say Y. 167a34ff6cdSHans Petter Selasky 1685d92bbe6SMauro Carvalho Chehab# This Kconfig option is used by both PCI and USB drivers 1695d92bbe6SMauro Carvalho Chehabconfig TTPCI_EEPROM 1705d92bbe6SMauro Carvalho Chehab tristate 1715d92bbe6SMauro Carvalho Chehab depends on I2C 1725d92bbe6SMauro Carvalho Chehab 173f0af8fa4SMauro Carvalho Chehabsource "drivers/media/dvb-core/Kconfig" 174f0af8fa4SMauro Carvalho Chehab 175c455f5c8SMauro Carvalho Chehabcomment "Media drivers" 1767c91f062SMauro Carvalho Chehab 177786baecfSMauro Carvalho Chehabsource "drivers/media/usb/Kconfig" 1783c8c09b5SMauro Carvalho Chehabsource "drivers/media/pci/Kconfig" 17906b93644SMauro Carvalho Chehabsource "drivers/media/radio/Kconfig" 18006b93644SMauro Carvalho Chehab 18106b93644SMauro Carvalho Chehabif MEDIA_PLATFORM_SUPPORT 1823c8c09b5SMauro Carvalho Chehabsource "drivers/media/platform/Kconfig" 1830013ca8cSMauro Carvalho Chehabsource "drivers/media/mmc/Kconfig" 18406b93644SMauro Carvalho Chehabendif 1851da177e4SLinus Torvalds 186616300bdSMauro Carvalho Chehabcomment "Supported FireWire (IEEE 1394) Adapters" 187616300bdSMauro Carvalho Chehab depends on DVB_CORE && FIREWIRE 188616300bdSMauro Carvalho Chehabsource "drivers/media/firewire/Kconfig" 189616300bdSMauro Carvalho Chehab 1903c8c09b5SMauro Carvalho Chehab# Common driver options 1913785bc17SMauro Carvalho Chehabsource "drivers/media/common/Kconfig" 1923785bc17SMauro Carvalho Chehab 1938283a092SHans Verkuilcomment "Media ancillary drivers (tuners, sensors, i2c, spi, frontends)" 1945344fe6eSHans Verkuil 1953c8c09b5SMauro Carvalho Chehab# 1968283a092SHans Verkuil# Ancillary drivers (tuners, i2c, spi, frontends) 1973c8c09b5SMauro Carvalho Chehab# 1983c8c09b5SMauro Carvalho Chehab 199fccea74fSMauro Carvalho Chehabconfig MEDIA_SUBDRV_AUTOSELECT 2008283a092SHans Verkuil bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)" 201435ef148SAntti Palosaari depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_CAMERA_SUPPORT || MEDIA_SDR_SUPPORT 202347f7a37SMauro Carvalho Chehab depends on HAS_IOMEM 203347f7a37SMauro Carvalho Chehab select I2C 204347f7a37SMauro Carvalho Chehab select I2C_MUX 20524f6f93aSEzequiel Garcia default y if !EMBEDDED 206fccea74fSMauro Carvalho Chehab help 2075344fe6eSHans Verkuil By default, a media driver auto-selects all possible ancillary 2085344fe6eSHans Verkuil devices such as tuners, sensors, video encoders/decoders and 2095344fe6eSHans Verkuil frontends, that are used by any of the supported devices. 210fccea74fSMauro Carvalho Chehab 211fccea74fSMauro Carvalho Chehab This is generally the right thing to do, except when there 2122c76a12aSMauro Carvalho Chehab are strict constraints with regards to the kernel size, 2132c76a12aSMauro Carvalho Chehab like on embedded systems. 214fccea74fSMauro Carvalho Chehab 2152c76a12aSMauro Carvalho Chehab Use this option with care, as deselecting ancillary drivers which 2162c76a12aSMauro Carvalho Chehab are, in fact, necessary will result in the lack of the needed 2172c76a12aSMauro Carvalho Chehab functionality for your device (it may not tune or may not have 2185344fe6eSHans Verkuil the needed demodulators). 219fccea74fSMauro Carvalho Chehab 220fccea74fSMauro Carvalho Chehab If unsure say Y. 221bb69ee27SMauro Carvalho Chehab 2224fa4ef39SEzequiel Garciaconfig MEDIA_HIDE_ANCILLARY_SUBDRV 2234fa4ef39SEzequiel Garcia bool 2244fa4ef39SEzequiel Garcia depends on MEDIA_SUBDRV_AUTOSELECT && !COMPILE_TEST && !EXPERT 2254fa4ef39SEzequiel Garcia default y 2264fa4ef39SEzequiel Garcia 227bb69ee27SMauro Carvalho Chehabconfig MEDIA_ATTACH 228bb69ee27SMauro Carvalho Chehab bool 229bb69ee27SMauro Carvalho Chehab depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT 230bb69ee27SMauro Carvalho Chehab depends on MODULES 231bb69ee27SMauro Carvalho Chehab default MODULES 232fccea74fSMauro Carvalho Chehab 2333c8c09b5SMauro Carvalho Chehabsource "drivers/media/i2c/Kconfig" 2348283a092SHans Verkuilsource "drivers/media/spi/Kconfig" 235fccea74fSMauro Carvalho Chehabsource "drivers/media/tuners/Kconfig" 2363c8c09b5SMauro Carvalho Chehabsource "drivers/media/dvb-frontends/Kconfig" 2373c8c09b5SMauro Carvalho Chehab 238ab482a6cSRandy Dunlapendif # MEDIA_SUPPORT 239