xref: /openbmc/linux/drivers/media/Kconfig (revision dacca5f0)
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"
27c39d5704SMauro Carvalho Chehab	depends on MEDIA_SUPPORT
28b0cd4fb2SMauro Carvalho Chehab	default y if !EMBEDDED && !EXPERT
29c6774ee0SMauro Carvalho Chehab	help
30c6774ee0SMauro Carvalho Chehab	   Configuring the media subsystem can be complex, as there are
31c6774ee0SMauro Carvalho Chehab	   hundreds of drivers and other config options.
32c6774ee0SMauro Carvalho Chehab
33c6774ee0SMauro Carvalho Chehab	   This menu offers option that will help the Kernel's config
34c6774ee0SMauro Carvalho Chehab	   system to hide drivers that are out of the scope of the
35c6774ee0SMauro Carvalho Chehab	   user needs, and disabling core support for unused APIs.
36c6774ee0SMauro Carvalho Chehab
37c6774ee0SMauro Carvalho Chehab	   If not selected, all non-optional media core functionality
38c6774ee0SMauro Carvalho Chehab	   needed to support media drivers will be enabled. Also, all
39c6774ee0SMauro Carvalho Chehab	   media device drivers should be shown.
40c6774ee0SMauro Carvalho Chehab
411b80d36aSMauro Carvalho Chehabconfig MEDIA_SUBDRV_AUTOSELECT
421b80d36aSMauro Carvalho Chehab	bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)"
431b80d36aSMauro Carvalho Chehab	depends on HAS_IOMEM
441b80d36aSMauro Carvalho Chehab	select I2C
451b80d36aSMauro Carvalho Chehab	select I2C_MUX
461b80d36aSMauro Carvalho Chehab	default y if MEDIA_SUPPORT_FILTER
471b80d36aSMauro Carvalho Chehab	help
481b80d36aSMauro Carvalho Chehab	  By default, a media driver auto-selects all possible ancillary
491b80d36aSMauro Carvalho Chehab	  devices such as tuners, sensors, video encoders/decoders and
501b80d36aSMauro Carvalho Chehab	  frontends, that are used by any of the supported devices.
511b80d36aSMauro Carvalho Chehab
521b80d36aSMauro Carvalho Chehab	  This is generally the right thing to do, except when there
531b80d36aSMauro Carvalho Chehab	  are strict constraints with regards to the kernel size,
541b80d36aSMauro Carvalho Chehab	  like on embedded systems.
551b80d36aSMauro Carvalho Chehab
561b80d36aSMauro Carvalho Chehab	  Use this option with care, as deselecting ancillary drivers which
571b80d36aSMauro Carvalho Chehab	  are, in fact, necessary will result in the lack of the needed
581b80d36aSMauro Carvalho Chehab	  functionality for your device (it may not tune or may not have
591b80d36aSMauro Carvalho Chehab	  the needed demodulators).
601b80d36aSMauro Carvalho Chehab
611b80d36aSMauro Carvalho Chehab	  If unsure say Y.
621b80d36aSMauro Carvalho Chehab
63c6774ee0SMauro Carvalho Chehabmenu "Media device types"
647c91f062SMauro Carvalho Chehab
657c91f062SMauro Carvalho Chehab#
66b4c184e5SMauro Carvalho Chehab# Multimedia support - automatically enable V4L2 and DVB core
67b4c184e5SMauro Carvalho Chehab#
68b4c184e5SMauro Carvalho Chehabconfig MEDIA_CAMERA_SUPPORT
69b6a7d1bcSMauro Carvalho Chehab	bool
70b6a7d1bcSMauro Carvalho Chehab	prompt "Cameras and video grabbers" if MEDIA_SUPPORT_FILTER
71c6774ee0SMauro Carvalho Chehab	default y if !MEDIA_SUPPORT_FILTER
72b60a5b8dSMauro Carvalho Chehab	help
73b4c184e5SMauro Carvalho Chehab	  Enable support for webcams and video grabbers.
74b4c184e5SMauro Carvalho Chehab
75b4c184e5SMauro Carvalho Chehab	  Say Y when you have a webcam or a video capture grabber board.
76b4c184e5SMauro Carvalho Chehab
77b4c184e5SMauro Carvalho Chehabconfig MEDIA_ANALOG_TV_SUPPORT
78b6a7d1bcSMauro Carvalho Chehab	bool
79b6a7d1bcSMauro Carvalho Chehab	prompt "Analog TV" if MEDIA_SUPPORT_FILTER
80c6774ee0SMauro Carvalho Chehab	default y if !MEDIA_SUPPORT_FILTER
81b60a5b8dSMauro Carvalho Chehab	help
82b4c184e5SMauro Carvalho Chehab	  Enable analog TV support.
83b4c184e5SMauro Carvalho Chehab
8485f7cd3aSMauro Carvalho Chehab	  Say Y when you have a TV board with analog support or with a
8585f7cd3aSMauro Carvalho Chehab	  hybrid analog/digital TV chipset.
8685f7cd3aSMauro Carvalho Chehab
8785f7cd3aSMauro Carvalho Chehab	  Note: There are several DVB cards that are based on chips that
8885f7cd3aSMauro Carvalho Chehab		support both analog and digital TV. Disabling this option
8985f7cd3aSMauro Carvalho Chehab		will disable support for them.
90b4c184e5SMauro Carvalho Chehab
91b4c184e5SMauro Carvalho Chehabconfig MEDIA_DIGITAL_TV_SUPPORT
92b6a7d1bcSMauro Carvalho Chehab	bool
93b6a7d1bcSMauro Carvalho Chehab	prompt "Digital TV" if MEDIA_SUPPORT_FILTER
94c6774ee0SMauro Carvalho Chehab	default y if !MEDIA_SUPPORT_FILTER
95b60a5b8dSMauro Carvalho Chehab	help
96b4c184e5SMauro Carvalho Chehab	  Enable digital TV support.
97b4c184e5SMauro Carvalho Chehab
9885f7cd3aSMauro Carvalho Chehab	  Say Y when you have a board with digital support or a board with
9985f7cd3aSMauro Carvalho Chehab	  hybrid digital TV and analog TV.
100b4c184e5SMauro Carvalho Chehab
101b4c184e5SMauro Carvalho Chehabconfig MEDIA_RADIO_SUPPORT
102b6a7d1bcSMauro Carvalho Chehab	bool
103b6a7d1bcSMauro Carvalho Chehab	prompt "AM/FM radio receivers/transmitters" if MEDIA_SUPPORT_FILTER
104c6774ee0SMauro Carvalho Chehab	default y if !MEDIA_SUPPORT_FILTER
105b60a5b8dSMauro Carvalho Chehab	help
106b4c184e5SMauro Carvalho Chehab	  Enable AM/FM radio support.
107b4c184e5SMauro Carvalho Chehab
108b4c184e5SMauro Carvalho Chehab	  Additional info and docs are available on the web at
109991ce92fSMauro Carvalho Chehab	  <https://linuxtv.org>
110b4c184e5SMauro Carvalho Chehab
111b4c184e5SMauro Carvalho Chehab	  Say Y when you have a board with radio support.
112b4c184e5SMauro Carvalho Chehab
11385f7cd3aSMauro Carvalho Chehab	  Note: There are several TV cards that are based on chips that
11485f7cd3aSMauro Carvalho Chehab		support radio reception. Disabling this option will
11585f7cd3aSMauro Carvalho Chehab		disable support for them.
11685f7cd3aSMauro Carvalho Chehab
117435ef148SAntti Palosaariconfig MEDIA_SDR_SUPPORT
118b6a7d1bcSMauro Carvalho Chehab	bool
119b6a7d1bcSMauro Carvalho Chehab	prompt "Software defined radio" if MEDIA_SUPPORT_FILTER
120c6774ee0SMauro Carvalho Chehab	default y if !MEDIA_SUPPORT_FILTER
121b60a5b8dSMauro Carvalho Chehab	help
122435ef148SAntti Palosaari	  Enable software defined radio support.
123435ef148SAntti Palosaari
124435ef148SAntti Palosaari	  Say Y when you have a software defined radio device.
125435ef148SAntti Palosaari
12606b93644SMauro Carvalho Chehabconfig MEDIA_PLATFORM_SUPPORT
127b6a7d1bcSMauro Carvalho Chehab	bool
128b6a7d1bcSMauro Carvalho Chehab	prompt "Platform-specific devices" if MEDIA_SUPPORT_FILTER
129c6774ee0SMauro Carvalho Chehab	default y if !MEDIA_SUPPORT_FILTER
13006b93644SMauro Carvalho Chehab	help
13106b93644SMauro Carvalho Chehab	  Enable support for complex cameras, codecs, and other hardware
13206b93644SMauro Carvalho Chehab	  that are integrated at the CPU, GPU or on Image Signalling Processor
13306b93644SMauro Carvalho Chehab	  and don't use PCI, USB or Firewire buses.
13406b93644SMauro Carvalho Chehab
13506b93644SMauro Carvalho Chehab	  This is found on Embedded hardware (SoC), on V4L2 codecs and
13606b93644SMauro Carvalho Chehab	  on some GPU and newer CPU chipsets.
13706b93644SMauro Carvalho Chehab
13806b93644SMauro Carvalho Chehab	  Say Y when you want to be able so see such devices.
13906b93644SMauro Carvalho Chehab
1404b32216aSMauro Carvalho Chehabconfig MEDIA_TEST_SUPPORT
141b6a7d1bcSMauro Carvalho Chehab	bool
142b6a7d1bcSMauro Carvalho Chehab	prompt "Test drivers" if MEDIA_SUPPORT_FILTER
143c6774ee0SMauro Carvalho Chehab	default y if !MEDIA_SUPPORT_FILTER
1444b32216aSMauro Carvalho Chehab	help
1454b32216aSMauro Carvalho Chehab	  Those drivers should not be used on production Kernels, but
1464b32216aSMauro Carvalho Chehab	  can be useful on debug ones. It enables several dummy drivers
1474b32216aSMauro Carvalho Chehab	  that simulate a real hardware. Very useful to test userspace
1484b32216aSMauro Carvalho Chehab	  applications and to validate if the subsystem core is doesn't
1494b32216aSMauro Carvalho Chehab	  have regressions.
1504b32216aSMauro Carvalho Chehab
1514b32216aSMauro Carvalho Chehab	  Say Y if you want to use some virtual test driver.
1524b32216aSMauro Carvalho Chehab
1534b32216aSMauro Carvalho Chehab	  In case of doubts, say N.
154c39d5704SMauro Carvalho Chehab	  Say Y when you have a software defined radio device.
155c6774ee0SMauro Carvalho Chehabendmenu # media device types
1564b32216aSMauro Carvalho Chehab
157078ab3eaSSakari Ailus
1585e9e60f4SMauro Carvalho Chehabmenu "Media core support"
1595e9e60f4SMauro Carvalho Chehab	visible if !MEDIA_SUPPORT_FILTER
1607c91f062SMauro Carvalho Chehab
1611da177e4SLinus Torvaldsconfig VIDEO_DEV
16285f7cd3aSMauro Carvalho Chehab	tristate "Video4Linux core"
16385f7cd3aSMauro Carvalho Chehab	default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_PLATFORM_SUPPORT || MEDIA_TEST_SUPPORT
1645e9e60f4SMauro Carvalho Chehab	help
1655e9e60f4SMauro Carvalho Chehab	  Enables the V4L2 API, used by cameras, analog TV, video grabbers,
1665e9e60f4SMauro Carvalho Chehab	  radio devices and by some input devices.
1671da177e4SLinus Torvalds
1688fc42fffSMauro Carvalho Chehabconfig MEDIA_CONTROLLER
1698fc42fffSMauro Carvalho Chehab	bool "Media Controller API"
1708fc42fffSMauro Carvalho Chehab	default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_PLATFORM_SUPPORT
1718fc42fffSMauro Carvalho Chehab	help
1728fc42fffSMauro Carvalho Chehab	  Enable the media controller API used to query media devices internal
1738fc42fffSMauro Carvalho Chehab	  topology and configure it dynamically.
1748fc42fffSMauro Carvalho Chehab
1758fc42fffSMauro Carvalho Chehab	  This API is mostly used by camera interfaces in embedded platforms.
1768fc42fffSMauro Carvalho Chehab
1777c91f062SMauro Carvalho Chehab#
1787c91f062SMauro Carvalho Chehab# DVB Core
179b4c184e5SMauro Carvalho Chehab#	Only enables if one of DTV is selected
1807c91f062SMauro Carvalho Chehab#
181cd41e28eSMauro Carvalho Chehab
1827c91f062SMauro Carvalho Chehabconfig DVB_CORE
183b4c184e5SMauro Carvalho Chehab	tristate
184b4c184e5SMauro Carvalho Chehab	depends on MEDIA_DIGITAL_TV_SUPPORT
18588327305SMauro Carvalho Chehab	depends on (I2C || I2C=n)
1868e5b5d75SMauro Carvalho Chehab	default MEDIA_DIGITAL_TV_SUPPORT
1877c91f062SMauro Carvalho Chehab	select CRC32
1884021053eSMauro Carvalho Chehab	help
1895e9e60f4SMauro Carvalho Chehab	  Enables the DVB API, used by Digital TV devices. Supports several
1905e9e60f4SMauro Carvalho Chehab	  standards, including DVB, ATSC, ISDB and CMDB.
1914021053eSMauro Carvalho Chehab
1925e9e60f4SMauro Carvalho Chehabendmenu # Media core support
1934021053eSMauro Carvalho Chehab
1945e9e60f4SMauro Carvalho Chehab#
1955e9e60f4SMauro Carvalho Chehab# Extra per-media API core functionality
196a34ff6cdSHans Petter Selasky
1970c822d97SMauro Carvalho Chehabmenu "Video4Linux options"
1980c822d97SMauro Carvalho Chehab	visible if VIDEO_DEV
1990c822d97SMauro Carvalho Chehab
2007d5bc693SMauro Carvalho Chehabsource "drivers/media/v4l2-core/Kconfig"
2010c822d97SMauro Carvalho Chehabendmenu
2020c822d97SMauro Carvalho Chehab
2030c822d97SMauro Carvalho Chehabmenu "Media controller options"
2040c822d97SMauro Carvalho Chehab	visible if MEDIA_CONTROLLER
2050c822d97SMauro Carvalho Chehab
2067d5bc693SMauro Carvalho Chehabsource "drivers/media/mc/Kconfig"
2070c822d97SMauro Carvalho Chehabendmenu
2080c822d97SMauro Carvalho Chehab
2090c822d97SMauro Carvalho Chehabmenu "Digital TV options"
2100c822d97SMauro Carvalho Chehab	visible if DVB_CORE
2110c822d97SMauro Carvalho Chehab
212f0af8fa4SMauro Carvalho Chehabsource "drivers/media/dvb-core/Kconfig"
2130c822d97SMauro Carvalho Chehabendmenu
2140c822d97SMauro Carvalho Chehab
2155e9e60f4SMauro Carvalho Chehabmenu "Media drivers"
2167c91f062SMauro Carvalho Chehab
217ce971d95SMauro Carvalho Chehabcomment "Drivers filtered as selected at 'Filter media drivers'"
218ce971d95SMauro Carvalho Chehab	depends on MEDIA_SUPPORT_FILTER
219ce971d95SMauro Carvalho Chehab
220786baecfSMauro Carvalho Chehabsource "drivers/media/usb/Kconfig"
2213c8c09b5SMauro Carvalho Chehabsource "drivers/media/pci/Kconfig"
22206b93644SMauro Carvalho Chehabsource "drivers/media/radio/Kconfig"
22306b93644SMauro Carvalho Chehab
2247d5bc693SMauro Carvalho Chehab# Common driver options
2257d5bc693SMauro Carvalho Chehabsource "drivers/media/common/Kconfig"
2267d5bc693SMauro Carvalho Chehab
22706b93644SMauro Carvalho Chehabif MEDIA_PLATFORM_SUPPORT
2283c8c09b5SMauro Carvalho Chehabsource "drivers/media/platform/Kconfig"
2290013ca8cSMauro Carvalho Chehabsource "drivers/media/mmc/Kconfig"
23006b93644SMauro Carvalho Chehabendif
2311da177e4SLinus Torvalds
232ffb2e008SGuillaume Tuckerif MEDIA_TEST_SUPPORT
233dacca5f0SHans Verkuilsource "drivers/media/test-drivers/Kconfig"
234ffb2e008SGuillaume Tuckerendif
235ffb2e008SGuillaume Tucker
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
251bb69ee27SMauro Carvalho Chehabconfig MEDIA_ATTACH
252bb69ee27SMauro Carvalho Chehab	bool
253bb69ee27SMauro Carvalho Chehab	depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT
254bb69ee27SMauro Carvalho Chehab	depends on MODULES
255bb69ee27SMauro Carvalho Chehab	default MODULES
256fccea74fSMauro Carvalho Chehab
2573c8c09b5SMauro Carvalho Chehabsource "drivers/media/i2c/Kconfig"
2588283a092SHans Verkuilsource "drivers/media/spi/Kconfig"
259fccea74fSMauro Carvalho Chehabsource "drivers/media/tuners/Kconfig"
2603c8c09b5SMauro Carvalho Chehabsource "drivers/media/dvb-frontends/Kconfig"
2613c8c09b5SMauro Carvalho Chehab
2625e9e60f4SMauro Carvalho Chehabendmenu
2635e9e60f4SMauro Carvalho Chehab
264ab482a6cSRandy Dunlapendif # MEDIA_SUPPORT
265