1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 21da177e4SLinus Torvalds# 31da177e4SLinus Torvalds# Multimedia device configuration 41da177e4SLinus Torvalds# 51da177e4SLinus Torvalds 69393d050SMauro Carvalho Chehab# 746d2a3b9SMauro Carvalho Chehab# NOTE: CEC and Remote Controller support should not depend on MEDIA_SUPPORT 89393d050SMauro Carvalho Chehab# 9b9e1486eSSean Youngsource "drivers/media/rc/Kconfig" 1046d2a3b9SMauro Carvalho Chehabsource "drivers/media/cec/Kconfig" 11b9e1486eSSean Young 12ab482a6cSRandy Dunlapmenuconfig MEDIA_SUPPORT 13ab482a6cSRandy Dunlap tristate "Multimedia support" 14e25df120SMartin Schwidefsky depends on HAS_IOMEM 15ab482a6cSRandy Dunlap help 16dee1877dSMauro Carvalho Chehab If you want to use media devices, including Webcams, Video grabber 17dee1877dSMauro Carvalho Chehab devices and/or TV devices, V4L2 codecs, etc, enable this option 18dee1877dSMauro Carvalho Chehab and other options below. 19dee1877dSMauro Carvalho Chehab 20b4c184e5SMauro Carvalho Chehab Additional info and docs are available on the web at 21991ce92fSMauro Carvalho Chehab <https://linuxtv.org> 22ab482a6cSRandy Dunlap 23c6774ee0SMauro Carvalho Chehabif MEDIA_SUPPORT 24c6774ee0SMauro Carvalho Chehab 25c6774ee0SMauro Carvalho Chehabconfig MEDIA_SUPPORT_FILTER 26ce971d95SMauro Carvalho Chehab bool "Filter media drivers" 27b0cd4fb2SMauro Carvalho Chehab default y if !EMBEDDED && !EXPERT 28c6774ee0SMauro Carvalho Chehab help 29c6774ee0SMauro Carvalho Chehab Configuring the media subsystem can be complex, as there are 30c6774ee0SMauro Carvalho Chehab hundreds of drivers and other config options. 31c6774ee0SMauro Carvalho Chehab 32c6774ee0SMauro Carvalho Chehab This menu offers option that will help the Kernel's config 33c6774ee0SMauro Carvalho Chehab system to hide drivers that are out of the scope of the 34c6774ee0SMauro Carvalho Chehab user needs, and disabling core support for unused APIs. 35c6774ee0SMauro Carvalho Chehab 36c6774ee0SMauro Carvalho Chehab If not selected, all non-optional media core functionality 37c6774ee0SMauro Carvalho Chehab needed to support media drivers will be enabled. Also, all 38c6774ee0SMauro Carvalho Chehab media device drivers should be shown. 39c6774ee0SMauro Carvalho Chehab 401b80d36aSMauro Carvalho Chehabconfig MEDIA_SUBDRV_AUTOSELECT 411b80d36aSMauro Carvalho Chehab bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)" 421b80d36aSMauro Carvalho Chehab depends on HAS_IOMEM 431b80d36aSMauro Carvalho Chehab select I2C 441b80d36aSMauro Carvalho Chehab select I2C_MUX 451b80d36aSMauro Carvalho Chehab default y if MEDIA_SUPPORT_FILTER 461b80d36aSMauro Carvalho Chehab help 471b80d36aSMauro Carvalho Chehab By default, a media driver auto-selects all possible ancillary 481b80d36aSMauro Carvalho Chehab devices such as tuners, sensors, video encoders/decoders and 491b80d36aSMauro Carvalho Chehab frontends, that are used by any of the supported devices. 501b80d36aSMauro Carvalho Chehab 511b80d36aSMauro Carvalho Chehab This is generally the right thing to do, except when there 521b80d36aSMauro Carvalho Chehab are strict constraints with regards to the kernel size, 531b80d36aSMauro Carvalho Chehab like on embedded systems. 541b80d36aSMauro Carvalho Chehab 551b80d36aSMauro Carvalho Chehab Use this option with care, as deselecting ancillary drivers which 561b80d36aSMauro Carvalho Chehab are, in fact, necessary will result in the lack of the needed 571b80d36aSMauro Carvalho Chehab functionality for your device (it may not tune or may not have 581b80d36aSMauro Carvalho Chehab the needed demodulators). 591b80d36aSMauro Carvalho Chehab 601b80d36aSMauro Carvalho Chehab If unsure say Y. 611b80d36aSMauro Carvalho Chehab 62c6774ee0SMauro Carvalho Chehabmenu "Media device types" 637c91f062SMauro Carvalho Chehab 647c91f062SMauro Carvalho Chehab# 65b4c184e5SMauro Carvalho Chehab# Multimedia support - automatically enable V4L2 and DVB core 66b4c184e5SMauro Carvalho Chehab# 67b4c184e5SMauro Carvalho Chehabconfig MEDIA_CAMERA_SUPPORT 68b6a7d1bcSMauro Carvalho Chehab bool 69b6a7d1bcSMauro Carvalho Chehab prompt "Cameras and video grabbers" if MEDIA_SUPPORT_FILTER 70c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 71b60a5b8dSMauro Carvalho Chehab help 72b4c184e5SMauro Carvalho Chehab Enable support for webcams and video grabbers. 73b4c184e5SMauro Carvalho Chehab 74b4c184e5SMauro Carvalho Chehab Say Y when you have a webcam or a video capture grabber board. 75b4c184e5SMauro Carvalho Chehab 76b4c184e5SMauro Carvalho Chehabconfig MEDIA_ANALOG_TV_SUPPORT 77b6a7d1bcSMauro Carvalho Chehab bool 78b6a7d1bcSMauro Carvalho Chehab prompt "Analog TV" if MEDIA_SUPPORT_FILTER 79c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 80b60a5b8dSMauro Carvalho Chehab help 81b4c184e5SMauro Carvalho Chehab Enable analog TV support. 82b4c184e5SMauro Carvalho Chehab 8385f7cd3aSMauro Carvalho Chehab Say Y when you have a TV board with analog support or with a 8485f7cd3aSMauro Carvalho Chehab hybrid analog/digital TV chipset. 8585f7cd3aSMauro Carvalho Chehab 8685f7cd3aSMauro Carvalho Chehab Note: There are several DVB cards that are based on chips that 8785f7cd3aSMauro Carvalho Chehab support both analog and digital TV. Disabling this option 8885f7cd3aSMauro Carvalho Chehab will disable support for them. 89b4c184e5SMauro Carvalho Chehab 90b4c184e5SMauro Carvalho Chehabconfig MEDIA_DIGITAL_TV_SUPPORT 91b6a7d1bcSMauro Carvalho Chehab bool 92b6a7d1bcSMauro Carvalho Chehab prompt "Digital TV" if MEDIA_SUPPORT_FILTER 93c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 94b60a5b8dSMauro Carvalho Chehab help 95b4c184e5SMauro Carvalho Chehab Enable digital TV support. 96b4c184e5SMauro Carvalho Chehab 9785f7cd3aSMauro Carvalho Chehab Say Y when you have a board with digital support or a board with 9885f7cd3aSMauro Carvalho Chehab hybrid digital TV and analog TV. 99b4c184e5SMauro Carvalho Chehab 100b4c184e5SMauro Carvalho Chehabconfig MEDIA_RADIO_SUPPORT 101b6a7d1bcSMauro Carvalho Chehab bool 102b6a7d1bcSMauro Carvalho Chehab prompt "AM/FM radio receivers/transmitters" if MEDIA_SUPPORT_FILTER 103c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 104b60a5b8dSMauro Carvalho Chehab help 105b4c184e5SMauro Carvalho Chehab Enable AM/FM radio support. 106b4c184e5SMauro Carvalho Chehab 107b4c184e5SMauro Carvalho Chehab Additional info and docs are available on the web at 108991ce92fSMauro Carvalho Chehab <https://linuxtv.org> 109b4c184e5SMauro Carvalho Chehab 110b4c184e5SMauro Carvalho Chehab Say Y when you have a board with radio support. 111b4c184e5SMauro Carvalho Chehab 11285f7cd3aSMauro Carvalho Chehab Note: There are several TV cards that are based on chips that 11385f7cd3aSMauro Carvalho Chehab support radio reception. Disabling this option will 11485f7cd3aSMauro Carvalho Chehab disable support for them. 11585f7cd3aSMauro Carvalho Chehab 116435ef148SAntti Palosaariconfig MEDIA_SDR_SUPPORT 117b6a7d1bcSMauro Carvalho Chehab bool 118b6a7d1bcSMauro Carvalho Chehab prompt "Software defined radio" if MEDIA_SUPPORT_FILTER 119c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 120b60a5b8dSMauro Carvalho Chehab help 121435ef148SAntti Palosaari Enable software defined radio support. 122435ef148SAntti Palosaari 123435ef148SAntti Palosaari Say Y when you have a software defined radio device. 124435ef148SAntti Palosaari 12506b93644SMauro Carvalho Chehabconfig MEDIA_PLATFORM_SUPPORT 126b6a7d1bcSMauro Carvalho Chehab bool 127b6a7d1bcSMauro Carvalho Chehab prompt "Platform-specific devices" if MEDIA_SUPPORT_FILTER 128c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 12906b93644SMauro Carvalho Chehab help 13006b93644SMauro Carvalho Chehab Enable support for complex cameras, codecs, and other hardware 13106b93644SMauro Carvalho Chehab that are integrated at the CPU, GPU or on Image Signalling Processor 13206b93644SMauro Carvalho Chehab and don't use PCI, USB or Firewire buses. 13306b93644SMauro Carvalho Chehab 13406b93644SMauro Carvalho Chehab This is found on Embedded hardware (SoC), on V4L2 codecs and 13506b93644SMauro Carvalho Chehab on some GPU and newer CPU chipsets. 13606b93644SMauro Carvalho Chehab 137aa966274SXiaofeng Cao Say Y when you want to be able to see such devices. 13806b93644SMauro Carvalho Chehab 1394b32216aSMauro Carvalho Chehabconfig MEDIA_TEST_SUPPORT 140b6a7d1bcSMauro Carvalho Chehab bool 141b6a7d1bcSMauro Carvalho Chehab prompt "Test drivers" if MEDIA_SUPPORT_FILTER 142c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 1434b32216aSMauro Carvalho Chehab help 144*09f4d151SRandy Dunlap These drivers should not be used on production kernels, but 145*09f4d151SRandy Dunlap can be useful on debug ones. This option enables several dummy drivers 146*09f4d151SRandy Dunlap that simulate real hardware. Very useful to test userspace 147*09f4d151SRandy Dunlap applications and to validate if the subsystem core doesn't 1484b32216aSMauro Carvalho Chehab have regressions. 1494b32216aSMauro Carvalho Chehab 1504b32216aSMauro Carvalho Chehab Say Y if you want to use some virtual test driver. 1514b32216aSMauro Carvalho Chehab 1524b32216aSMauro Carvalho Chehab In case of doubts, say N. 153c39d5704SMauro Carvalho Chehab Say Y when you have a software defined radio device. 154c6774ee0SMauro Carvalho Chehabendmenu # media device types 1554b32216aSMauro Carvalho Chehab 156078ab3eaSSakari Ailus 1575e9e60f4SMauro Carvalho Chehabmenu "Media core support" 1585e9e60f4SMauro Carvalho Chehab visible if !MEDIA_SUPPORT_FILTER 1597c91f062SMauro Carvalho Chehab 1601da177e4SLinus Torvaldsconfig VIDEO_DEV 16185f7cd3aSMauro Carvalho Chehab tristate "Video4Linux core" 16285f7cd3aSMauro Carvalho Chehab default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_PLATFORM_SUPPORT || MEDIA_TEST_SUPPORT 1635e9e60f4SMauro Carvalho Chehab help 1645e9e60f4SMauro Carvalho Chehab Enables the V4L2 API, used by cameras, analog TV, video grabbers, 1655e9e60f4SMauro Carvalho Chehab radio devices and by some input devices. 1661da177e4SLinus Torvalds 1678fc42fffSMauro Carvalho Chehabconfig MEDIA_CONTROLLER 1688fc42fffSMauro Carvalho Chehab bool "Media Controller API" 1698fc42fffSMauro Carvalho Chehab default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_PLATFORM_SUPPORT 1708fc42fffSMauro Carvalho Chehab help 1718fc42fffSMauro Carvalho Chehab Enable the media controller API used to query media devices internal 1728fc42fffSMauro Carvalho Chehab topology and configure it dynamically. 1738fc42fffSMauro Carvalho Chehab 1748fc42fffSMauro Carvalho Chehab This API is mostly used by camera interfaces in embedded platforms. 1758fc42fffSMauro Carvalho Chehab 1767c91f062SMauro Carvalho Chehab# 1777c91f062SMauro Carvalho Chehab# DVB Core 178b4c184e5SMauro Carvalho Chehab# Only enables if one of DTV is selected 1797c91f062SMauro Carvalho Chehab# 180cd41e28eSMauro Carvalho Chehab 1817c91f062SMauro Carvalho Chehabconfig DVB_CORE 182b4c184e5SMauro Carvalho Chehab tristate 183b4c184e5SMauro Carvalho Chehab depends on MEDIA_DIGITAL_TV_SUPPORT 18488327305SMauro Carvalho Chehab depends on (I2C || I2C=n) 1858e5b5d75SMauro Carvalho Chehab default MEDIA_DIGITAL_TV_SUPPORT 1867c91f062SMauro Carvalho Chehab select CRC32 1874021053eSMauro Carvalho Chehab help 1885e9e60f4SMauro Carvalho Chehab Enables the DVB API, used by Digital TV devices. Supports several 1895e9e60f4SMauro Carvalho Chehab standards, including DVB, ATSC, ISDB and CMDB. 1904021053eSMauro Carvalho Chehab 1915e9e60f4SMauro Carvalho Chehabendmenu # Media core support 1924021053eSMauro Carvalho Chehab 1935e9e60f4SMauro Carvalho Chehab# 1945e9e60f4SMauro Carvalho Chehab# Extra per-media API core functionality 195a34ff6cdSHans Petter Selasky 1960c822d97SMauro Carvalho Chehabmenu "Video4Linux options" 1970c822d97SMauro Carvalho Chehab visible if VIDEO_DEV 1980c822d97SMauro Carvalho Chehab 1997d5bc693SMauro Carvalho Chehabsource "drivers/media/v4l2-core/Kconfig" 2000c822d97SMauro Carvalho Chehabendmenu 2010c822d97SMauro Carvalho Chehab 2020c822d97SMauro Carvalho Chehabmenu "Media controller options" 2030c822d97SMauro Carvalho Chehab visible if MEDIA_CONTROLLER 2040c822d97SMauro Carvalho Chehab 2057d5bc693SMauro Carvalho Chehabsource "drivers/media/mc/Kconfig" 2060c822d97SMauro Carvalho Chehabendmenu 2070c822d97SMauro Carvalho Chehab 2080c822d97SMauro Carvalho Chehabmenu "Digital TV options" 2090c822d97SMauro Carvalho Chehab visible if DVB_CORE 2100c822d97SMauro Carvalho Chehab 211f0af8fa4SMauro Carvalho Chehabsource "drivers/media/dvb-core/Kconfig" 2120c822d97SMauro Carvalho Chehabendmenu 2130c822d97SMauro Carvalho Chehab 2145e9e60f4SMauro Carvalho Chehabmenu "Media drivers" 2157c91f062SMauro Carvalho Chehab 216ce971d95SMauro Carvalho Chehabcomment "Drivers filtered as selected at 'Filter media drivers'" 217ce971d95SMauro Carvalho Chehab depends on MEDIA_SUPPORT_FILTER 218ce971d95SMauro Carvalho Chehab 219786baecfSMauro Carvalho Chehabsource "drivers/media/usb/Kconfig" 2203c8c09b5SMauro Carvalho Chehabsource "drivers/media/pci/Kconfig" 22106b93644SMauro Carvalho Chehabsource "drivers/media/radio/Kconfig" 22206b93644SMauro Carvalho Chehab 2237d5bc693SMauro Carvalho Chehab# Common driver options 2247d5bc693SMauro Carvalho Chehabsource "drivers/media/common/Kconfig" 2257d5bc693SMauro Carvalho Chehab 22606b93644SMauro Carvalho Chehabif MEDIA_PLATFORM_SUPPORT 2273c8c09b5SMauro Carvalho Chehabsource "drivers/media/platform/Kconfig" 2280013ca8cSMauro Carvalho Chehabsource "drivers/media/mmc/Kconfig" 22906b93644SMauro Carvalho Chehabendif 2301da177e4SLinus Torvalds 231ffb2e008SGuillaume Tuckerif MEDIA_TEST_SUPPORT 232dacca5f0SHans Verkuilsource "drivers/media/test-drivers/Kconfig" 233ffb2e008SGuillaume Tuckerendif 234ffb2e008SGuillaume Tucker 235616300bdSMauro Carvalho Chehabsource "drivers/media/firewire/Kconfig" 236616300bdSMauro Carvalho Chehab 2375e9e60f4SMauro Carvalho Chehabendmenu 2385e9e60f4SMauro Carvalho Chehab 2393c8c09b5SMauro Carvalho Chehab# 2408283a092SHans Verkuil# Ancillary drivers (tuners, i2c, spi, frontends) 2413c8c09b5SMauro Carvalho Chehab# 2423c8c09b5SMauro Carvalho Chehab 2434fa4ef39SEzequiel Garciaconfig MEDIA_HIDE_ANCILLARY_SUBDRV 2444fa4ef39SEzequiel Garcia bool 2454fa4ef39SEzequiel Garcia depends on MEDIA_SUBDRV_AUTOSELECT && !COMPILE_TEST && !EXPERT 2464fa4ef39SEzequiel Garcia default y 2474fa4ef39SEzequiel Garcia 2481b80d36aSMauro Carvalho Chehabmenu "Media ancillary drivers" 2491b80d36aSMauro Carvalho Chehab 250bb69ee27SMauro Carvalho Chehabconfig MEDIA_ATTACH 251bb69ee27SMauro Carvalho Chehab bool 252bb69ee27SMauro Carvalho Chehab depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT 253bb69ee27SMauro Carvalho Chehab depends on MODULES 254bb69ee27SMauro Carvalho Chehab default MODULES 255fccea74fSMauro Carvalho Chehab 2563c8c09b5SMauro Carvalho Chehabsource "drivers/media/i2c/Kconfig" 2578283a092SHans Verkuilsource "drivers/media/spi/Kconfig" 258fccea74fSMauro Carvalho Chehabsource "drivers/media/tuners/Kconfig" 2593c8c09b5SMauro Carvalho Chehabsource "drivers/media/dvb-frontends/Kconfig" 2603c8c09b5SMauro Carvalho Chehab 2615e9e60f4SMauro Carvalho Chehabendmenu 2625e9e60f4SMauro Carvalho Chehab 263ab482a6cSRandy Dunlapendif # MEDIA_SUPPORT 264