xref: /openbmc/linux/drivers/media/Kconfig (revision 991ce92f)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Multimedia device configuration
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
5ab482a6cSRandy Dunlapmenuconfig MEDIA_SUPPORT
6ab482a6cSRandy Dunlap	tristate "Multimedia support"
7e25df120SMartin Schwidefsky	depends on HAS_IOMEM
8ab482a6cSRandy Dunlap	help
9b4c184e5SMauro Carvalho Chehab	  If you want to use Webcams, Video grabber devices and/or TV devices
10ab482a6cSRandy Dunlap	  enable this option and other options below.
11b4c184e5SMauro Carvalho Chehab	  Additional info and docs are available on the web at
12991ce92fSMauro Carvalho Chehab	  <https://linuxtv.org>
13ab482a6cSRandy Dunlap
14ab482a6cSRandy Dunlapif MEDIA_SUPPORT
151da177e4SLinus Torvalds
167c91f062SMauro Carvalho Chehabcomment "Multimedia core support"
177c91f062SMauro Carvalho Chehab
187c91f062SMauro Carvalho Chehab#
19b4c184e5SMauro Carvalho Chehab# Multimedia support - automatically enable V4L2 and DVB core
20b4c184e5SMauro Carvalho Chehab#
21b4c184e5SMauro Carvalho Chehabconfig MEDIA_CAMERA_SUPPORT
22b4c184e5SMauro Carvalho Chehab	bool "Cameras/video grabbers support"
23b4c184e5SMauro Carvalho Chehab	---help---
24b4c184e5SMauro Carvalho Chehab	  Enable support for webcams and video grabbers.
25b4c184e5SMauro Carvalho Chehab
26b4c184e5SMauro Carvalho Chehab	  Say Y when you have a webcam or a video capture grabber board.
27b4c184e5SMauro Carvalho Chehab
28b4c184e5SMauro Carvalho Chehabconfig MEDIA_ANALOG_TV_SUPPORT
29b4c184e5SMauro Carvalho Chehab	bool "Analog TV support"
30b4c184e5SMauro Carvalho Chehab	---help---
31b4c184e5SMauro Carvalho Chehab	  Enable analog TV support.
32b4c184e5SMauro Carvalho Chehab
33b4c184e5SMauro Carvalho Chehab	  Say Y when you have a TV board with analog support or with a
34b4c184e5SMauro Carvalho Chehab	  hybrid analog/digital TV chipset.
35b4c184e5SMauro Carvalho Chehab
36b4c184e5SMauro Carvalho Chehab	  Note: There are several DVB cards that are based on chips that
37b4c184e5SMauro Carvalho Chehab		support both analog and digital TV. Disabling this option
38b4c184e5SMauro Carvalho Chehab		will disable support for them.
39b4c184e5SMauro Carvalho Chehab
40b4c184e5SMauro Carvalho Chehabconfig MEDIA_DIGITAL_TV_SUPPORT
41b4c184e5SMauro Carvalho Chehab	bool "Digital TV support"
42b4c184e5SMauro Carvalho Chehab	---help---
43b4c184e5SMauro Carvalho Chehab	  Enable digital TV support.
44b4c184e5SMauro Carvalho Chehab
45b4c184e5SMauro Carvalho Chehab	  Say Y when you have a board with digital support or a board with
46b4c184e5SMauro Carvalho Chehab	  hybrid digital TV and analog TV.
47b4c184e5SMauro Carvalho Chehab
48b4c184e5SMauro Carvalho Chehabconfig MEDIA_RADIO_SUPPORT
49b4c184e5SMauro Carvalho Chehab	bool "AM/FM radio receivers/transmitters support"
50b4c184e5SMauro Carvalho Chehab	---help---
51b4c184e5SMauro Carvalho Chehab	  Enable AM/FM radio support.
52b4c184e5SMauro Carvalho Chehab
53b4c184e5SMauro Carvalho Chehab	  Additional info and docs are available on the web at
54991ce92fSMauro Carvalho Chehab	  <https://linuxtv.org>
55b4c184e5SMauro Carvalho Chehab
56b4c184e5SMauro Carvalho Chehab	  Say Y when you have a board with radio support.
57b4c184e5SMauro Carvalho Chehab
58b4c184e5SMauro Carvalho Chehab	  Note: There are several TV cards that are based on chips that
59b4c184e5SMauro Carvalho Chehab		support radio reception. Disabling this option will
60b4c184e5SMauro Carvalho Chehab		disable support for them.
61b4c184e5SMauro Carvalho Chehab
62435ef148SAntti Palosaariconfig MEDIA_SDR_SUPPORT
63435ef148SAntti Palosaari	bool "Software defined radio support"
64435ef148SAntti Palosaari	---help---
65435ef148SAntti Palosaari	  Enable software defined radio support.
66435ef148SAntti Palosaari
67435ef148SAntti Palosaari	  Say Y when you have a software defined radio device.
68435ef148SAntti Palosaari
69c455f5c8SMauro Carvalho Chehabconfig MEDIA_RC_SUPPORT
70b4c184e5SMauro Carvalho Chehab	bool "Remote Controller support"
71b4c184e5SMauro Carvalho Chehab	depends on INPUT
72b4c184e5SMauro Carvalho Chehab	---help---
73b4c184e5SMauro Carvalho Chehab	  Enable support for Remote Controllers on Linux. This is
74b4c184e5SMauro Carvalho Chehab	  needed in order to support several video capture adapters,
75b4c184e5SMauro Carvalho Chehab	  standalone IR receivers/transmitters, and RF receivers.
76b4c184e5SMauro Carvalho Chehab
77b4c184e5SMauro Carvalho Chehab	  Enable this option if you have a video capture board even
78b4c184e5SMauro Carvalho Chehab	  if you don't need IR, as otherwise, you may not be able to
79b4c184e5SMauro Carvalho Chehab	  compile the driver for your adapter.
80b4c184e5SMauro Carvalho Chehab
81b4c184e5SMauro Carvalho Chehab	  Say Y when you have a TV or an IR device.
82b4c184e5SMauro Carvalho Chehab
83b4c184e5SMauro Carvalho Chehab#
84cf4b9211SLaurent Pinchart# Media controller
85b4c184e5SMauro Carvalho Chehab#	Selectable only for webcam/grabbers, as other drivers don't use it
86cf4b9211SLaurent Pinchart#
87cf4b9211SLaurent Pinchart
88cf4b9211SLaurent Pinchartconfig MEDIA_CONTROLLER
8951e8cb74SKees Cook	bool "Media Controller API"
90a0246e02SMauro Carvalho Chehab	depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT
91cf4b9211SLaurent Pinchart	---help---
92cf4b9211SLaurent Pinchart	  Enable the media controller API used to query media devices internal
93cf4b9211SLaurent Pinchart	  topology and configure it dynamically.
94cf4b9211SLaurent Pinchart
95cf4b9211SLaurent Pinchart	  This API is mostly used by camera interfaces in embedded platforms.
96cf4b9211SLaurent Pinchart
97a0246e02SMauro Carvalho Chehabconfig MEDIA_CONTROLLER_DVB
98c3f22501SMauro Carvalho Chehab	bool "Enable Media controller for DVB (EXPERIMENTAL)"
99a0246e02SMauro Carvalho Chehab	depends on MEDIA_CONTROLLER
1006cea28d0SMauro Carvalho Chehab	depends on BROKEN
101a0246e02SMauro Carvalho Chehab	---help---
102a0246e02SMauro Carvalho Chehab	  Enable the media controller API support for DVB.
103a0246e02SMauro Carvalho Chehab
104a0246e02SMauro Carvalho Chehab	  This is currently experimental.
105a0246e02SMauro Carvalho Chehab
106cf4b9211SLaurent Pinchart#
107b4c184e5SMauro Carvalho Chehab# Video4Linux support
108b4c184e5SMauro Carvalho Chehab#	Only enables if one of the V4L2 types (ATV, webcam, radio) is selected
1097c91f062SMauro Carvalho Chehab#
1107c91f062SMauro Carvalho Chehab
1111da177e4SLinus Torvaldsconfig VIDEO_DEV
112b4c184e5SMauro Carvalho Chehab	tristate
113b4c184e5SMauro Carvalho Chehab	depends on MEDIA_SUPPORT
114435ef148SAntti Palosaari	depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT
115b4c184e5SMauro Carvalho Chehab	default y
1161da177e4SLinus Torvalds
1177cd5a16bSStanimir Varbanovconfig VIDEO_V4L2_SUBDEV_API
11851e8cb74SKees Cook	bool "V4L2 sub-device userspace API"
11951e8cb74SKees Cook	depends on VIDEO_DEV && MEDIA_CONTROLLER
1207cd5a16bSStanimir Varbanov	---help---
1217cd5a16bSStanimir Varbanov	  Enables the V4L2 sub-device pad-level userspace API used to configure
1227cd5a16bSStanimir Varbanov	  video format, size and frame rate between hardware blocks.
1237cd5a16bSStanimir Varbanov
1247cd5a16bSStanimir Varbanov	  This API is mostly used by camera interfaces in embedded platforms.
1257cd5a16bSStanimir Varbanov
126f0af8fa4SMauro Carvalho Chehabsource "drivers/media/v4l2-core/Kconfig"
127f0af8fa4SMauro Carvalho Chehab
1287c91f062SMauro Carvalho Chehab#
1297c91f062SMauro Carvalho Chehab# DVB Core
130b4c184e5SMauro Carvalho Chehab#	Only enables if one of DTV is selected
1317c91f062SMauro Carvalho Chehab#
132cd41e28eSMauro Carvalho Chehab
1337c91f062SMauro Carvalho Chehabconfig DVB_CORE
134b4c184e5SMauro Carvalho Chehab	tristate
135b4c184e5SMauro Carvalho Chehab	depends on MEDIA_SUPPORT
136b4c184e5SMauro Carvalho Chehab	depends on MEDIA_DIGITAL_TV_SUPPORT
137b4c184e5SMauro Carvalho Chehab	default y
1387c91f062SMauro Carvalho Chehab	select CRC32
1397c91f062SMauro Carvalho Chehab
140a34ff6cdSHans Petter Selaskyconfig DVB_NET
141a34ff6cdSHans Petter Selasky	bool "DVB Network Support"
142a34ff6cdSHans Petter Selasky	default (NET && INET)
1438c528d5eSGuennadi Liakhovetski	depends on NET && INET && DVB_CORE
144a34ff6cdSHans Petter Selasky	help
1459a78efc8SJiri Slaby	  This option enables DVB Network Support which is a part of the DVB
1469a78efc8SJiri Slaby	  standard. It is used, for example, by automatic firmware updates used
1479a78efc8SJiri Slaby	  on Set-Top-Boxes. It can also be used to access the Internet via the
1489a78efc8SJiri Slaby	  DVB card, if the network provider supports it.
149a34ff6cdSHans Petter Selasky
1509a78efc8SJiri Slaby	  You may want to disable the network support on embedded devices. If
1519a78efc8SJiri Slaby	  unsure say Y.
152a34ff6cdSHans Petter Selasky
1535d92bbe6SMauro Carvalho Chehab# This Kconfig option is used by both PCI and USB drivers
1545d92bbe6SMauro Carvalho Chehabconfig TTPCI_EEPROM
1555d92bbe6SMauro Carvalho Chehab	tristate
1565d92bbe6SMauro Carvalho Chehab	depends on I2C
1575d92bbe6SMauro Carvalho Chehab	default n
1585d92bbe6SMauro Carvalho Chehab
159f0af8fa4SMauro Carvalho Chehabsource "drivers/media/dvb-core/Kconfig"
160f0af8fa4SMauro Carvalho Chehab
161c455f5c8SMauro Carvalho Chehabcomment "Media drivers"
16232cf86f6SMauro Carvalho Chehabsource "drivers/media/rc/Kconfig"
1637c91f062SMauro Carvalho Chehab
1647c91f062SMauro Carvalho Chehab#
165cb7a01acSMauro Carvalho Chehab# V4L platform/mem2mem drivers
166cb7a01acSMauro Carvalho Chehab#
1671da177e4SLinus Torvalds
168786baecfSMauro Carvalho Chehabsource "drivers/media/usb/Kconfig"
1693c8c09b5SMauro Carvalho Chehabsource "drivers/media/pci/Kconfig"
1703c8c09b5SMauro Carvalho Chehabsource "drivers/media/platform/Kconfig"
1710013ca8cSMauro Carvalho Chehabsource "drivers/media/mmc/Kconfig"
1723c8c09b5SMauro Carvalho Chehabsource "drivers/media/radio/Kconfig"
1731da177e4SLinus Torvalds
174616300bdSMauro Carvalho Chehabcomment "Supported FireWire (IEEE 1394) Adapters"
175616300bdSMauro Carvalho Chehab	depends on DVB_CORE && FIREWIRE
176616300bdSMauro Carvalho Chehabsource "drivers/media/firewire/Kconfig"
177616300bdSMauro Carvalho Chehab
1783c8c09b5SMauro Carvalho Chehab# Common driver options
1793785bc17SMauro Carvalho Chehabsource "drivers/media/common/Kconfig"
1803785bc17SMauro Carvalho Chehab
1815344fe6eSHans Verkuilcomment "Media ancillary drivers (tuners, sensors, i2c, frontends)"
1825344fe6eSHans Verkuil
1833c8c09b5SMauro Carvalho Chehab#
1843c8c09b5SMauro Carvalho Chehab# Ancillary drivers (tuners, i2c, frontends)
1853c8c09b5SMauro Carvalho Chehab#
1863c8c09b5SMauro Carvalho Chehab
187fccea74fSMauro Carvalho Chehabconfig MEDIA_SUBDRV_AUTOSELECT
1885344fe6eSHans Verkuil	bool "Autoselect ancillary drivers (tuners, sensors, i2c, frontends)"
189435ef148SAntti Palosaari	depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_CAMERA_SUPPORT || MEDIA_SDR_SUPPORT
190347f7a37SMauro Carvalho Chehab	depends on HAS_IOMEM
191347f7a37SMauro Carvalho Chehab	select I2C
192347f7a37SMauro Carvalho Chehab	select I2C_MUX
193fccea74fSMauro Carvalho Chehab	default y
194fccea74fSMauro Carvalho Chehab	help
1955344fe6eSHans Verkuil	  By default, a media driver auto-selects all possible ancillary
1965344fe6eSHans Verkuil	  devices such as tuners, sensors, video encoders/decoders and
1975344fe6eSHans Verkuil	  frontends, that are used by any of the supported devices.
198fccea74fSMauro Carvalho Chehab
199fccea74fSMauro Carvalho Chehab	  This is generally the right thing to do, except when there
2002c76a12aSMauro Carvalho Chehab	  are strict constraints with regards to the kernel size,
2012c76a12aSMauro Carvalho Chehab	  like on embedded systems.
202fccea74fSMauro Carvalho Chehab
2032c76a12aSMauro Carvalho Chehab	  Use this option with care, as deselecting ancillary drivers which
2042c76a12aSMauro Carvalho Chehab	  are, in fact, necessary will result in the lack of the needed
2052c76a12aSMauro Carvalho Chehab	  functionality for your device (it may not tune or may not have
2065344fe6eSHans Verkuil	  the needed demodulators).
207fccea74fSMauro Carvalho Chehab
208fccea74fSMauro Carvalho Chehab	  If unsure say Y.
209bb69ee27SMauro Carvalho Chehab
210bb69ee27SMauro Carvalho Chehabconfig MEDIA_ATTACH
211bb69ee27SMauro Carvalho Chehab	bool
212bb69ee27SMauro Carvalho Chehab	depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT
213bb69ee27SMauro Carvalho Chehab	depends on MODULES
214bb69ee27SMauro Carvalho Chehab	default MODULES
215fccea74fSMauro Carvalho Chehab
2163c8c09b5SMauro Carvalho Chehabsource "drivers/media/i2c/Kconfig"
217fccea74fSMauro Carvalho Chehabsource "drivers/media/tuners/Kconfig"
2183c8c09b5SMauro Carvalho Chehabsource "drivers/media/dvb-frontends/Kconfig"
2193c8c09b5SMauro Carvalho Chehab
220ab482a6cSRandy Dunlapendif # MEDIA_SUPPORT
221