1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 21da177e4SLinus Torvalds# 31da177e4SLinus Torvalds# Multimedia device configuration 41da177e4SLinus Torvalds# 51da177e4SLinus Torvalds 6b9e1486eSSean Youngsource "drivers/media/rc/Kconfig" 7b9e1486eSSean Young 8ab482a6cSRandy Dunlapmenuconfig MEDIA_SUPPORT 9ab482a6cSRandy Dunlap tristate "Multimedia support" 10e25df120SMartin Schwidefsky depends on HAS_IOMEM 11ab482a6cSRandy Dunlap help 12dee1877dSMauro Carvalho Chehab If you want to use media devices, including Webcams, Video grabber 13dee1877dSMauro Carvalho Chehab devices and/or TV devices, V4L2 codecs, etc, enable this option 14dee1877dSMauro Carvalho Chehab and other options below. 15dee1877dSMauro Carvalho Chehab 16b4c184e5SMauro Carvalho Chehab Additional info and docs are available on the web at 17991ce92fSMauro Carvalho Chehab <https://linuxtv.org> 18ab482a6cSRandy Dunlap 19c6774ee0SMauro Carvalho Chehabif MEDIA_SUPPORT 20c6774ee0SMauro Carvalho Chehab 21c6774ee0SMauro Carvalho Chehabconfig MEDIA_SUPPORT_FILTER 22ce971d95SMauro Carvalho Chehab bool "Filter media drivers" 23c39d5704SMauro Carvalho Chehab depends on MEDIA_SUPPORT 24b0cd4fb2SMauro Carvalho Chehab default y if !EMBEDDED && !EXPERT 25c6774ee0SMauro Carvalho Chehab help 26c6774ee0SMauro Carvalho Chehab Configuring the media subsystem can be complex, as there are 27c6774ee0SMauro Carvalho Chehab hundreds of drivers and other config options. 28c6774ee0SMauro Carvalho Chehab 29c6774ee0SMauro Carvalho Chehab This menu offers option that will help the Kernel's config 30c6774ee0SMauro Carvalho Chehab system to hide drivers that are out of the scope of the 31c6774ee0SMauro Carvalho Chehab user needs, and disabling core support for unused APIs. 32c6774ee0SMauro Carvalho Chehab 33c6774ee0SMauro Carvalho Chehab If not selected, all non-optional media core functionality 34c6774ee0SMauro Carvalho Chehab needed to support media drivers will be enabled. Also, all 35c6774ee0SMauro Carvalho Chehab media device drivers should be shown. 36c6774ee0SMauro Carvalho Chehab 371b80d36aSMauro Carvalho Chehabconfig MEDIA_SUBDRV_AUTOSELECT 381b80d36aSMauro Carvalho Chehab bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)" 391b80d36aSMauro Carvalho Chehab depends on HAS_IOMEM 401b80d36aSMauro Carvalho Chehab select I2C 411b80d36aSMauro Carvalho Chehab select I2C_MUX 421b80d36aSMauro Carvalho Chehab default y if MEDIA_SUPPORT_FILTER 431b80d36aSMauro Carvalho Chehab help 441b80d36aSMauro Carvalho Chehab By default, a media driver auto-selects all possible ancillary 451b80d36aSMauro Carvalho Chehab devices such as tuners, sensors, video encoders/decoders and 461b80d36aSMauro Carvalho Chehab frontends, that are used by any of the supported devices. 471b80d36aSMauro Carvalho Chehab 481b80d36aSMauro Carvalho Chehab This is generally the right thing to do, except when there 491b80d36aSMauro Carvalho Chehab are strict constraints with regards to the kernel size, 501b80d36aSMauro Carvalho Chehab like on embedded systems. 511b80d36aSMauro Carvalho Chehab 521b80d36aSMauro Carvalho Chehab Use this option with care, as deselecting ancillary drivers which 531b80d36aSMauro Carvalho Chehab are, in fact, necessary will result in the lack of the needed 541b80d36aSMauro Carvalho Chehab functionality for your device (it may not tune or may not have 551b80d36aSMauro Carvalho Chehab the needed demodulators). 561b80d36aSMauro Carvalho Chehab 571b80d36aSMauro Carvalho Chehab If unsure say Y. 581b80d36aSMauro Carvalho Chehab 59c6774ee0SMauro Carvalho Chehabmenu "Media device types" 607c91f062SMauro Carvalho Chehab 617c91f062SMauro Carvalho Chehab# 62b4c184e5SMauro Carvalho Chehab# Multimedia support - automatically enable V4L2 and DVB core 63b4c184e5SMauro Carvalho Chehab# 64b4c184e5SMauro Carvalho Chehabconfig MEDIA_CAMERA_SUPPORT 65b6a7d1bcSMauro Carvalho Chehab bool 66b6a7d1bcSMauro Carvalho Chehab prompt "Cameras and video grabbers" if MEDIA_SUPPORT_FILTER 67c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 68b60a5b8dSMauro Carvalho Chehab help 69b4c184e5SMauro Carvalho Chehab Enable support for webcams and video grabbers. 70b4c184e5SMauro Carvalho Chehab 71b4c184e5SMauro Carvalho Chehab Say Y when you have a webcam or a video capture grabber board. 72b4c184e5SMauro Carvalho Chehab 73b4c184e5SMauro Carvalho Chehabconfig MEDIA_ANALOG_TV_SUPPORT 74b6a7d1bcSMauro Carvalho Chehab bool 75b6a7d1bcSMauro Carvalho Chehab prompt "Analog TV" if MEDIA_SUPPORT_FILTER 76c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 77b60a5b8dSMauro Carvalho Chehab help 78b4c184e5SMauro Carvalho Chehab Enable analog TV support. 79b4c184e5SMauro Carvalho Chehab 80a3b91d8bSMauro Carvalho Chehab Say Y when you have a board with analog TV support. 81b4c184e5SMauro Carvalho Chehab 82b4c184e5SMauro Carvalho Chehabconfig MEDIA_DIGITAL_TV_SUPPORT 83b6a7d1bcSMauro Carvalho Chehab bool 84b6a7d1bcSMauro Carvalho Chehab prompt "Digital TV" if MEDIA_SUPPORT_FILTER 85c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 86b60a5b8dSMauro Carvalho Chehab help 87b4c184e5SMauro Carvalho Chehab Enable digital TV support. 88b4c184e5SMauro Carvalho Chehab 89a3b91d8bSMauro Carvalho Chehab Say Y when you have a board with digital TV support. 90b4c184e5SMauro Carvalho Chehab 91b4c184e5SMauro Carvalho Chehabconfig MEDIA_RADIO_SUPPORT 92b6a7d1bcSMauro Carvalho Chehab bool 93b6a7d1bcSMauro Carvalho Chehab prompt "AM/FM radio receivers/transmitters" if MEDIA_SUPPORT_FILTER 94c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 95b60a5b8dSMauro Carvalho Chehab help 96b4c184e5SMauro Carvalho Chehab Enable AM/FM radio support. 97b4c184e5SMauro Carvalho Chehab 98b4c184e5SMauro Carvalho Chehab Additional info and docs are available on the web at 99991ce92fSMauro Carvalho Chehab <https://linuxtv.org> 100b4c184e5SMauro Carvalho Chehab 101b4c184e5SMauro Carvalho Chehab Say Y when you have a board with radio support. 102b4c184e5SMauro Carvalho Chehab 103435ef148SAntti Palosaariconfig MEDIA_SDR_SUPPORT 104b6a7d1bcSMauro Carvalho Chehab bool 105b6a7d1bcSMauro Carvalho Chehab prompt "Software defined radio" if MEDIA_SUPPORT_FILTER 106c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 107b60a5b8dSMauro Carvalho Chehab help 108435ef148SAntti Palosaari Enable software defined radio support. 109435ef148SAntti Palosaari 110435ef148SAntti Palosaari Say Y when you have a software defined radio device. 111435ef148SAntti Palosaari 1120dbacebeSHans Verkuilconfig MEDIA_CEC_SUPPORT 113b6a7d1bcSMauro Carvalho Chehab bool 114b6a7d1bcSMauro Carvalho Chehab prompt "HDMI CEC support" if MEDIA_SUPPORT_FILTER 115c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 116b60a5b8dSMauro Carvalho Chehab help 1170dbacebeSHans Verkuil Enable support for HDMI CEC (Consumer Electronics Control), 1180dbacebeSHans Verkuil which is an optional HDMI feature. 1190dbacebeSHans Verkuil 1200dbacebeSHans Verkuil Say Y when you have an HDMI receiver, transmitter or a USB CEC 1210dbacebeSHans Verkuil adapter that supports HDMI CEC. 1220dbacebeSHans Verkuil 12306b93644SMauro Carvalho Chehabconfig MEDIA_PLATFORM_SUPPORT 124b6a7d1bcSMauro Carvalho Chehab bool 125b6a7d1bcSMauro Carvalho Chehab prompt "Platform-specific devices" if MEDIA_SUPPORT_FILTER 126c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 12706b93644SMauro Carvalho Chehab help 12806b93644SMauro Carvalho Chehab Enable support for complex cameras, codecs, and other hardware 12906b93644SMauro Carvalho Chehab that are integrated at the CPU, GPU or on Image Signalling Processor 13006b93644SMauro Carvalho Chehab and don't use PCI, USB or Firewire buses. 13106b93644SMauro Carvalho Chehab 13206b93644SMauro Carvalho Chehab This is found on Embedded hardware (SoC), on V4L2 codecs and 13306b93644SMauro Carvalho Chehab on some GPU and newer CPU chipsets. 13406b93644SMauro Carvalho Chehab 13506b93644SMauro Carvalho Chehab Say Y when you want to be able so see such devices. 13606b93644SMauro Carvalho Chehab 1374b32216aSMauro Carvalho Chehabconfig MEDIA_TEST_SUPPORT 138b6a7d1bcSMauro Carvalho Chehab bool 139b6a7d1bcSMauro Carvalho Chehab prompt "Test drivers" if MEDIA_SUPPORT_FILTER 140c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 1414b32216aSMauro Carvalho Chehab help 1424b32216aSMauro Carvalho Chehab Those drivers should not be used on production Kernels, but 1434b32216aSMauro Carvalho Chehab can be useful on debug ones. It enables several dummy drivers 1444b32216aSMauro Carvalho Chehab that simulate a real hardware. Very useful to test userspace 1454b32216aSMauro Carvalho Chehab applications and to validate if the subsystem core is doesn't 1464b32216aSMauro Carvalho Chehab have regressions. 1474b32216aSMauro Carvalho Chehab 1484b32216aSMauro Carvalho Chehab Say Y if you want to use some virtual test driver. 1494b32216aSMauro Carvalho Chehab 1504b32216aSMauro Carvalho Chehab In case of doubts, say N. 151c39d5704SMauro Carvalho Chehab Say Y when you have a software defined radio device. 152c6774ee0SMauro Carvalho Chehabendmenu # media device types 1534b32216aSMauro Carvalho Chehab 154078ab3eaSSakari Ailus 1555e9e60f4SMauro Carvalho Chehabmenu "Media core support" 1565e9e60f4SMauro Carvalho Chehab visible if !MEDIA_SUPPORT_FILTER 1577c91f062SMauro Carvalho Chehab 158a3b91d8bSMauro Carvalho Chehabcomment "Video4Linux core enabled to support hybrid TV devices" 159a3b91d8bSMauro Carvalho Chehab depends on MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI 160a3b91d8bSMauro Carvalho Chehab 1611da177e4SLinus Torvaldsconfig VIDEO_DEV 162b4c184e5SMauro Carvalho Chehab tristate 163a3b91d8bSMauro Carvalho Chehab prompt "Video4Linux core" if !(MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI) 1646268b351SMauro Carvalho Chehab 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 1655e9e60f4SMauro Carvalho Chehab help 1665e9e60f4SMauro Carvalho Chehab Enables the V4L2 API, used by cameras, analog TV, video grabbers, 1675e9e60f4SMauro Carvalho Chehab radio devices and by some input devices. 1681da177e4SLinus Torvalds 1698fc42fffSMauro Carvalho Chehabconfig MEDIA_CONTROLLER 1708fc42fffSMauro Carvalho Chehab bool "Media Controller API" 1718fc42fffSMauro Carvalho Chehab default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_PLATFORM_SUPPORT 1728fc42fffSMauro Carvalho Chehab help 1738fc42fffSMauro Carvalho Chehab Enable the media controller API used to query media devices internal 1748fc42fffSMauro Carvalho Chehab topology and configure it dynamically. 1758fc42fffSMauro Carvalho Chehab 1768fc42fffSMauro Carvalho Chehab This API is mostly used by camera interfaces in embedded platforms. 1778fc42fffSMauro Carvalho Chehab 1787c91f062SMauro Carvalho Chehab# 1797c91f062SMauro Carvalho Chehab# DVB Core 180b4c184e5SMauro Carvalho Chehab# Only enables if one of DTV is selected 1817c91f062SMauro Carvalho Chehab# 182cd41e28eSMauro Carvalho Chehab 183a3b91d8bSMauro Carvalho Chehabcomment "Digital TV core enabled to support hybrid TV devices" 184a3b91d8bSMauro Carvalho Chehab depends on MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI 185a3b91d8bSMauro Carvalho Chehab 1867c91f062SMauro Carvalho Chehabconfig DVB_CORE 187b4c184e5SMauro Carvalho Chehab tristate 188a3b91d8bSMauro Carvalho Chehab prompt "Digital TV core" if !(MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI) 189b4c184e5SMauro Carvalho Chehab depends on MEDIA_DIGITAL_TV_SUPPORT 19088327305SMauro Carvalho Chehab depends on (I2C || I2C=n) 1917c91f062SMauro Carvalho Chehab select CRC32 1924021053eSMauro Carvalho Chehab help 1935e9e60f4SMauro Carvalho Chehab Enables the DVB API, used by Digital TV devices. Supports several 1945e9e60f4SMauro Carvalho Chehab standards, including DVB, ATSC, ISDB and CMDB. 1954021053eSMauro Carvalho Chehab 1965e9e60f4SMauro Carvalho Chehabendmenu # Media core support 1974021053eSMauro Carvalho Chehab 1985e9e60f4SMauro Carvalho Chehab# 1995e9e60f4SMauro Carvalho Chehab# Extra per-media API core functionality 200a34ff6cdSHans Petter Selasky 2010c822d97SMauro Carvalho Chehabmenu "Video4Linux options" 2020c822d97SMauro Carvalho Chehab visible if VIDEO_DEV 2030c822d97SMauro Carvalho Chehab 2047d5bc693SMauro Carvalho Chehabsource "drivers/media/v4l2-core/Kconfig" 2050c822d97SMauro Carvalho Chehabendmenu 2060c822d97SMauro Carvalho Chehab 2070c822d97SMauro Carvalho Chehabmenu "Media controller options" 2080c822d97SMauro Carvalho Chehab visible if MEDIA_CONTROLLER 2090c822d97SMauro Carvalho Chehab 2107d5bc693SMauro Carvalho Chehabsource "drivers/media/mc/Kconfig" 2110c822d97SMauro Carvalho Chehabendmenu 2120c822d97SMauro Carvalho Chehab 2130c822d97SMauro Carvalho Chehabmenu "Digital TV options" 2140c822d97SMauro Carvalho Chehab visible if DVB_CORE 2150c822d97SMauro Carvalho Chehab 216f0af8fa4SMauro Carvalho Chehabsource "drivers/media/dvb-core/Kconfig" 2170c822d97SMauro Carvalho Chehabendmenu 2180c822d97SMauro Carvalho Chehab 2190c822d97SMauro Carvalho Chehabmenu "HDMI CEC options" 2200c822d97SMauro Carvalho Chehab visible if CEC_CORE 2210c822d97SMauro Carvalho Chehab 2227d5bc693SMauro Carvalho Chehabsource "drivers/media/cec/Kconfig" 2235e9e60f4SMauro Carvalho Chehabendmenu 224f0af8fa4SMauro Carvalho Chehab 2255e9e60f4SMauro Carvalho Chehabmenu "Media drivers" 2267c91f062SMauro Carvalho Chehab 227ce971d95SMauro Carvalho Chehabcomment "Drivers filtered as selected at 'Filter media drivers'" 228ce971d95SMauro Carvalho Chehab depends on MEDIA_SUPPORT_FILTER 229ce971d95SMauro Carvalho Chehab 230786baecfSMauro Carvalho Chehabsource "drivers/media/usb/Kconfig" 2313c8c09b5SMauro Carvalho Chehabsource "drivers/media/pci/Kconfig" 23206b93644SMauro Carvalho Chehabsource "drivers/media/radio/Kconfig" 23306b93644SMauro Carvalho Chehab 2347d5bc693SMauro Carvalho Chehab# Common driver options 2357d5bc693SMauro Carvalho Chehabsource "drivers/media/common/Kconfig" 2367d5bc693SMauro Carvalho Chehab 23706b93644SMauro Carvalho Chehabif MEDIA_PLATFORM_SUPPORT 2383c8c09b5SMauro Carvalho Chehabsource "drivers/media/platform/Kconfig" 2394b32216aSMauro Carvalho Chehabsource "drivers/media/test_drivers/Kconfig" 2400013ca8cSMauro Carvalho Chehabsource "drivers/media/mmc/Kconfig" 24106b93644SMauro Carvalho Chehabendif 2421da177e4SLinus Torvalds 243616300bdSMauro Carvalho Chehabsource "drivers/media/firewire/Kconfig" 244616300bdSMauro Carvalho Chehab 2455e9e60f4SMauro Carvalho Chehabendmenu 2465e9e60f4SMauro Carvalho Chehab 2473c8c09b5SMauro Carvalho Chehab# 2488283a092SHans Verkuil# Ancillary drivers (tuners, i2c, spi, frontends) 2493c8c09b5SMauro Carvalho Chehab# 2503c8c09b5SMauro Carvalho Chehab 2514fa4ef39SEzequiel Garciaconfig MEDIA_HIDE_ANCILLARY_SUBDRV 2524fa4ef39SEzequiel Garcia bool 2534fa4ef39SEzequiel Garcia depends on MEDIA_SUBDRV_AUTOSELECT && !COMPILE_TEST && !EXPERT 2544fa4ef39SEzequiel Garcia default y 2554fa4ef39SEzequiel Garcia 2561b80d36aSMauro Carvalho Chehabmenu "Media ancillary drivers" 2571b80d36aSMauro Carvalho Chehab visible if !MEDIA_HIDE_ANCILLARY_SUBDRV 2581b80d36aSMauro Carvalho Chehab 259bb69ee27SMauro Carvalho Chehabconfig MEDIA_ATTACH 260bb69ee27SMauro Carvalho Chehab bool 261bb69ee27SMauro Carvalho Chehab depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT 262bb69ee27SMauro Carvalho Chehab depends on MODULES 263bb69ee27SMauro Carvalho Chehab default MODULES 264fccea74fSMauro Carvalho Chehab 2653c8c09b5SMauro Carvalho Chehabsource "drivers/media/i2c/Kconfig" 2668283a092SHans Verkuilsource "drivers/media/spi/Kconfig" 267fccea74fSMauro Carvalho Chehabsource "drivers/media/tuners/Kconfig" 2683c8c09b5SMauro Carvalho Chehabsource "drivers/media/dvb-frontends/Kconfig" 2693c8c09b5SMauro Carvalho Chehab 2705e9e60f4SMauro Carvalho Chehabendmenu 2715e9e60f4SMauro Carvalho Chehab 272ab482a6cSRandy Dunlapendif # MEDIA_SUPPORT 273