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" 60c6774ee0SMauro Carvalho Chehab visible if MEDIA_SUPPORT_FILTER 617c91f062SMauro Carvalho Chehab 627c91f062SMauro Carvalho Chehab# 63b4c184e5SMauro Carvalho Chehab# Multimedia support - automatically enable V4L2 and DVB core 64b4c184e5SMauro Carvalho Chehab# 65b4c184e5SMauro Carvalho Chehabconfig MEDIA_CAMERA_SUPPORT 66c39d5704SMauro Carvalho Chehab bool "Cameras and video grabbers" 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 74c39d5704SMauro Carvalho Chehab bool "Analog TV" 75c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 76b60a5b8dSMauro Carvalho Chehab help 77b4c184e5SMauro Carvalho Chehab Enable analog TV support. 78b4c184e5SMauro Carvalho Chehab 79a3b91d8bSMauro Carvalho Chehab Say Y when you have a board with analog TV support. 80b4c184e5SMauro Carvalho Chehab 81b4c184e5SMauro Carvalho Chehabconfig MEDIA_DIGITAL_TV_SUPPORT 82c39d5704SMauro Carvalho Chehab bool "Digital TV" 83c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 84b60a5b8dSMauro Carvalho Chehab help 85b4c184e5SMauro Carvalho Chehab Enable digital TV support. 86b4c184e5SMauro Carvalho Chehab 87a3b91d8bSMauro Carvalho Chehab Say Y when you have a board with digital TV support. 88b4c184e5SMauro Carvalho Chehab 89b4c184e5SMauro Carvalho Chehabconfig MEDIA_RADIO_SUPPORT 90c39d5704SMauro Carvalho Chehab bool "AM/FM radio receivers/transmitters" 91c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 92b60a5b8dSMauro Carvalho Chehab help 93b4c184e5SMauro Carvalho Chehab Enable AM/FM radio support. 94b4c184e5SMauro Carvalho Chehab 95b4c184e5SMauro Carvalho Chehab Additional info and docs are available on the web at 96991ce92fSMauro Carvalho Chehab <https://linuxtv.org> 97b4c184e5SMauro Carvalho Chehab 98b4c184e5SMauro Carvalho Chehab Say Y when you have a board with radio support. 99b4c184e5SMauro Carvalho Chehab 100435ef148SAntti Palosaariconfig MEDIA_SDR_SUPPORT 101c39d5704SMauro Carvalho Chehab bool "Software defined radio" 102c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 103b60a5b8dSMauro Carvalho Chehab help 104435ef148SAntti Palosaari Enable software defined radio support. 105435ef148SAntti Palosaari 106435ef148SAntti Palosaari Say Y when you have a software defined radio device. 107435ef148SAntti Palosaari 1080dbacebeSHans Verkuilconfig MEDIA_CEC_SUPPORT 109c39d5704SMauro Carvalho Chehab bool "HDMI CEC" 110c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 111b60a5b8dSMauro Carvalho Chehab help 1120dbacebeSHans Verkuil Enable support for HDMI CEC (Consumer Electronics Control), 1130dbacebeSHans Verkuil which is an optional HDMI feature. 1140dbacebeSHans Verkuil 1150dbacebeSHans Verkuil Say Y when you have an HDMI receiver, transmitter or a USB CEC 1160dbacebeSHans Verkuil adapter that supports HDMI CEC. 1170dbacebeSHans Verkuil 11806b93644SMauro Carvalho Chehabconfig MEDIA_PLATFORM_SUPPORT 119c39d5704SMauro Carvalho Chehab bool "Platform-specific devices" 120c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 12106b93644SMauro Carvalho Chehab help 12206b93644SMauro Carvalho Chehab Enable support for complex cameras, codecs, and other hardware 12306b93644SMauro Carvalho Chehab that are integrated at the CPU, GPU or on Image Signalling Processor 12406b93644SMauro Carvalho Chehab and don't use PCI, USB or Firewire buses. 12506b93644SMauro Carvalho Chehab 12606b93644SMauro Carvalho Chehab This is found on Embedded hardware (SoC), on V4L2 codecs and 12706b93644SMauro Carvalho Chehab on some GPU and newer CPU chipsets. 12806b93644SMauro Carvalho Chehab 12906b93644SMauro Carvalho Chehab Say Y when you want to be able so see such devices. 13006b93644SMauro Carvalho Chehab 1314b32216aSMauro Carvalho Chehabconfig MEDIA_TEST_SUPPORT 132c39d5704SMauro Carvalho Chehab bool "Test drivers" 133c6774ee0SMauro Carvalho Chehab default y if !MEDIA_SUPPORT_FILTER 1344b32216aSMauro Carvalho Chehab help 1354b32216aSMauro Carvalho Chehab Those drivers should not be used on production Kernels, but 1364b32216aSMauro Carvalho Chehab can be useful on debug ones. It enables several dummy drivers 1374b32216aSMauro Carvalho Chehab that simulate a real hardware. Very useful to test userspace 1384b32216aSMauro Carvalho Chehab applications and to validate if the subsystem core is doesn't 1394b32216aSMauro Carvalho Chehab have regressions. 1404b32216aSMauro Carvalho Chehab 1414b32216aSMauro Carvalho Chehab Say Y if you want to use some virtual test driver. 1424b32216aSMauro Carvalho Chehab 1434b32216aSMauro Carvalho Chehab In case of doubts, say N. 144c39d5704SMauro Carvalho Chehab Say Y when you have a software defined radio device. 145c6774ee0SMauro Carvalho Chehabendmenu # media device types 1464b32216aSMauro Carvalho Chehab 147078ab3eaSSakari Ailus 1485e9e60f4SMauro Carvalho Chehabmenu "Media core support" 1495e9e60f4SMauro Carvalho Chehab visible if !MEDIA_SUPPORT_FILTER 1507c91f062SMauro Carvalho Chehab 151a3b91d8bSMauro Carvalho Chehabcomment "Video4Linux core enabled to support hybrid TV devices" 152a3b91d8bSMauro Carvalho Chehab depends on MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI 153a3b91d8bSMauro Carvalho Chehab 1541da177e4SLinus Torvaldsconfig VIDEO_DEV 155b4c184e5SMauro Carvalho Chehab tristate 156a3b91d8bSMauro Carvalho Chehab prompt "Video4Linux core" if !(MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI) 1576268b351SMauro 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 1585e9e60f4SMauro Carvalho Chehab help 1595e9e60f4SMauro Carvalho Chehab Enables the V4L2 API, used by cameras, analog TV, video grabbers, 1605e9e60f4SMauro Carvalho Chehab radio devices and by some input devices. 1611da177e4SLinus Torvalds 1628fc42fffSMauro Carvalho Chehabconfig MEDIA_CONTROLLER 1638fc42fffSMauro Carvalho Chehab bool "Media Controller API" 1648fc42fffSMauro Carvalho Chehab default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_PLATFORM_SUPPORT 1658fc42fffSMauro Carvalho Chehab help 1668fc42fffSMauro Carvalho Chehab Enable the media controller API used to query media devices internal 1678fc42fffSMauro Carvalho Chehab topology and configure it dynamically. 1688fc42fffSMauro Carvalho Chehab 1698fc42fffSMauro Carvalho Chehab This API is mostly used by camera interfaces in embedded platforms. 1708fc42fffSMauro Carvalho Chehab 1717c91f062SMauro Carvalho Chehab# 1727c91f062SMauro Carvalho Chehab# DVB Core 173b4c184e5SMauro Carvalho Chehab# Only enables if one of DTV is selected 1747c91f062SMauro Carvalho Chehab# 175cd41e28eSMauro Carvalho Chehab 176a3b91d8bSMauro Carvalho Chehabcomment "Digital TV core enabled to support hybrid TV devices" 177a3b91d8bSMauro Carvalho Chehab depends on MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI 178a3b91d8bSMauro Carvalho Chehab 1797c91f062SMauro Carvalho Chehabconfig DVB_CORE 180b4c184e5SMauro Carvalho Chehab tristate 181a3b91d8bSMauro Carvalho Chehab prompt "Digital TV core" if !(MEDIA_HYBRID_USB || MEDIA_HYBRID_PCI) 182b4c184e5SMauro Carvalho Chehab depends on MEDIA_DIGITAL_TV_SUPPORT 18388327305SMauro Carvalho Chehab depends on (I2C || I2C=n) 1847c91f062SMauro Carvalho Chehab select CRC32 1854021053eSMauro Carvalho Chehab help 1865e9e60f4SMauro Carvalho Chehab Enables the DVB API, used by Digital TV devices. Supports several 1875e9e60f4SMauro Carvalho Chehab standards, including DVB, ATSC, ISDB and CMDB. 1884021053eSMauro Carvalho Chehab 1895e9e60f4SMauro Carvalho Chehabendmenu # Media core support 1904021053eSMauro Carvalho Chehab 1915e9e60f4SMauro Carvalho Chehab# 1925e9e60f4SMauro Carvalho Chehab# Extra per-media API core functionality 193a34ff6cdSHans Petter Selasky 1940c822d97SMauro Carvalho Chehabmenu "Video4Linux options" 1950c822d97SMauro Carvalho Chehab visible if VIDEO_DEV 1960c822d97SMauro Carvalho Chehab 1977d5bc693SMauro Carvalho Chehabsource "drivers/media/v4l2-core/Kconfig" 1980c822d97SMauro Carvalho Chehabendmenu 1990c822d97SMauro Carvalho Chehab 2000c822d97SMauro Carvalho Chehabmenu "Media controller options" 2010c822d97SMauro Carvalho Chehab visible if MEDIA_CONTROLLER 2020c822d97SMauro Carvalho Chehab 2037d5bc693SMauro Carvalho Chehabsource "drivers/media/mc/Kconfig" 2040c822d97SMauro Carvalho Chehabendmenu 2050c822d97SMauro Carvalho Chehab 2060c822d97SMauro Carvalho Chehabmenu "Digital TV options" 2070c822d97SMauro Carvalho Chehab visible if DVB_CORE 2080c822d97SMauro Carvalho Chehab 209f0af8fa4SMauro Carvalho Chehabsource "drivers/media/dvb-core/Kconfig" 2100c822d97SMauro Carvalho Chehabendmenu 2110c822d97SMauro Carvalho Chehab 2120c822d97SMauro Carvalho Chehabmenu "HDMI CEC options" 2130c822d97SMauro Carvalho Chehab visible if CEC_CORE 2140c822d97SMauro Carvalho Chehab 2157d5bc693SMauro Carvalho Chehabsource "drivers/media/cec/Kconfig" 2165e9e60f4SMauro Carvalho Chehabendmenu 217f0af8fa4SMauro Carvalho Chehab 2185e9e60f4SMauro Carvalho Chehabmenu "Media drivers" 2197c91f062SMauro Carvalho Chehab 220ce971d95SMauro Carvalho Chehabcomment "Drivers filtered as selected at 'Filter media drivers'" 221ce971d95SMauro Carvalho Chehab depends on MEDIA_SUPPORT_FILTER 222ce971d95SMauro Carvalho Chehab 223786baecfSMauro Carvalho Chehabsource "drivers/media/usb/Kconfig" 2243c8c09b5SMauro Carvalho Chehabsource "drivers/media/pci/Kconfig" 22506b93644SMauro Carvalho Chehabsource "drivers/media/radio/Kconfig" 22606b93644SMauro Carvalho Chehab 2277d5bc693SMauro Carvalho Chehab# Common driver options 2287d5bc693SMauro Carvalho Chehabsource "drivers/media/common/Kconfig" 2297d5bc693SMauro Carvalho Chehab 23006b93644SMauro Carvalho Chehabif MEDIA_PLATFORM_SUPPORT 2313c8c09b5SMauro Carvalho Chehabsource "drivers/media/platform/Kconfig" 2324b32216aSMauro Carvalho Chehabsource "drivers/media/test_drivers/Kconfig" 2330013ca8cSMauro Carvalho Chehabsource "drivers/media/mmc/Kconfig" 23406b93644SMauro Carvalho Chehabendif 2351da177e4SLinus Torvalds 236616300bdSMauro Carvalho Chehabsource "drivers/media/firewire/Kconfig" 237616300bdSMauro Carvalho Chehab 2385e9e60f4SMauro Carvalho Chehabendmenu 2395e9e60f4SMauro Carvalho Chehab 2403c8c09b5SMauro Carvalho Chehab# 2418283a092SHans Verkuil# Ancillary drivers (tuners, i2c, spi, frontends) 2423c8c09b5SMauro Carvalho Chehab# 2433c8c09b5SMauro Carvalho Chehab 2444fa4ef39SEzequiel Garciaconfig MEDIA_HIDE_ANCILLARY_SUBDRV 2454fa4ef39SEzequiel Garcia bool 2464fa4ef39SEzequiel Garcia depends on MEDIA_SUBDRV_AUTOSELECT && !COMPILE_TEST && !EXPERT 2474fa4ef39SEzequiel Garcia default y 2484fa4ef39SEzequiel Garcia 2491b80d36aSMauro Carvalho Chehabmenu "Media ancillary drivers" 2501b80d36aSMauro Carvalho Chehab visible if !MEDIA_HIDE_ANCILLARY_SUBDRV 2511b80d36aSMauro Carvalho Chehab 252bb69ee27SMauro Carvalho Chehabconfig MEDIA_ATTACH 253bb69ee27SMauro Carvalho Chehab bool 254bb69ee27SMauro Carvalho Chehab depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT 255bb69ee27SMauro Carvalho Chehab depends on MODULES 256bb69ee27SMauro Carvalho Chehab default MODULES 257fccea74fSMauro Carvalho Chehab 2583c8c09b5SMauro Carvalho Chehabsource "drivers/media/i2c/Kconfig" 2598283a092SHans Verkuilsource "drivers/media/spi/Kconfig" 260fccea74fSMauro Carvalho Chehabsource "drivers/media/tuners/Kconfig" 2613c8c09b5SMauro Carvalho Chehabsource "drivers/media/dvb-frontends/Kconfig" 2623c8c09b5SMauro Carvalho Chehab 2635e9e60f4SMauro Carvalho Chehabendmenu 2645e9e60f4SMauro Carvalho Chehab 265ab482a6cSRandy Dunlapendif # MEDIA_SUPPORT 266