Kconfig 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. #
  2. # Multimedia device configuration
  3. #
  4. config CEC_CORE
  5. tristate
  6. config CEC_NOTIFIER
  7. bool
  8. config CEC_PIN
  9. bool
  10. source "drivers/media/rc/Kconfig"
  11. menuconfig MEDIA_SUPPORT
  12. tristate "Multimedia support"
  13. depends on HAS_IOMEM
  14. help
  15. If you want to use Webcams, Video grabber devices and/or TV devices
  16. enable this option and other options below.
  17. Additional info and docs are available on the web at
  18. <https://linuxtv.org>
  19. if MEDIA_SUPPORT
  20. comment "Multimedia core support"
  21. #
  22. # Multimedia support - automatically enable V4L2 and DVB core
  23. #
  24. config MEDIA_CAMERA_SUPPORT
  25. bool "Cameras/video grabbers support"
  26. ---help---
  27. Enable support for webcams and video grabbers.
  28. Say Y when you have a webcam or a video capture grabber board.
  29. config MEDIA_ANALOG_TV_SUPPORT
  30. bool "Analog TV support"
  31. ---help---
  32. Enable analog TV support.
  33. Say Y when you have a TV board with analog support or with a
  34. hybrid analog/digital TV chipset.
  35. Note: There are several DVB cards that are based on chips that
  36. support both analog and digital TV. Disabling this option
  37. will disable support for them.
  38. config MEDIA_DIGITAL_TV_SUPPORT
  39. bool "Digital TV support"
  40. ---help---
  41. Enable digital TV support.
  42. Say Y when you have a board with digital support or a board with
  43. hybrid digital TV and analog TV.
  44. config MEDIA_RADIO_SUPPORT
  45. bool "AM/FM radio receivers/transmitters support"
  46. ---help---
  47. Enable AM/FM radio support.
  48. Additional info and docs are available on the web at
  49. <https://linuxtv.org>
  50. Say Y when you have a board with radio support.
  51. Note: There are several TV cards that are based on chips that
  52. support radio reception. Disabling this option will
  53. disable support for them.
  54. config MEDIA_SDR_SUPPORT
  55. bool "Software defined radio support"
  56. ---help---
  57. Enable software defined radio support.
  58. Say Y when you have a software defined radio device.
  59. config MEDIA_CEC_SUPPORT
  60. bool "HDMI CEC support"
  61. ---help---
  62. Enable support for HDMI CEC (Consumer Electronics Control),
  63. which is an optional HDMI feature.
  64. Say Y when you have an HDMI receiver, transmitter or a USB CEC
  65. adapter that supports HDMI CEC.
  66. source "drivers/media/cec/Kconfig"
  67. #
  68. # Media controller
  69. # Selectable only for webcam/grabbers, as other drivers don't use it
  70. #
  71. config MEDIA_CONTROLLER
  72. bool "Media Controller API"
  73. depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT
  74. ---help---
  75. Enable the media controller API used to query media devices internal
  76. topology and configure it dynamically.
  77. This API is mostly used by camera interfaces in embedded platforms.
  78. config MEDIA_CONTROLLER_DVB
  79. bool "Enable Media controller for DVB (EXPERIMENTAL)"
  80. depends on MEDIA_CONTROLLER && DVB_CORE
  81. ---help---
  82. Enable the media controller API support for DVB.
  83. This is currently experimental.
  84. #
  85. # Video4Linux support
  86. # Only enables if one of the V4L2 types (ATV, webcam, radio) is selected
  87. #
  88. config VIDEO_DEV
  89. tristate
  90. depends on MEDIA_SUPPORT
  91. depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT
  92. default y
  93. config VIDEO_V4L2_SUBDEV_API
  94. bool "V4L2 sub-device userspace API"
  95. depends on VIDEO_DEV && MEDIA_CONTROLLER
  96. ---help---
  97. Enables the V4L2 sub-device pad-level userspace API used to configure
  98. video format, size and frame rate between hardware blocks.
  99. This API is mostly used by camera interfaces in embedded platforms.
  100. source "drivers/media/v4l2-core/Kconfig"
  101. #
  102. # DVB Core
  103. # Only enables if one of DTV is selected
  104. #
  105. config DVB_CORE
  106. tristate
  107. depends on MEDIA_SUPPORT
  108. depends on MEDIA_DIGITAL_TV_SUPPORT
  109. default y
  110. select CRC32
  111. config DVB_NET
  112. bool "DVB Network Support"
  113. default (NET && INET)
  114. depends on NET && INET && DVB_CORE
  115. help
  116. This option enables DVB Network Support which is a part of the DVB
  117. standard. It is used, for example, by automatic firmware updates used
  118. on Set-Top-Boxes. It can also be used to access the Internet via the
  119. DVB card, if the network provider supports it.
  120. You may want to disable the network support on embedded devices. If
  121. unsure say Y.
  122. # This Kconfig option is used by both PCI and USB drivers
  123. config TTPCI_EEPROM
  124. tristate
  125. depends on I2C
  126. default n
  127. source "drivers/media/dvb-core/Kconfig"
  128. comment "Media drivers"
  129. #
  130. # V4L platform/mem2mem drivers
  131. #
  132. source "drivers/media/usb/Kconfig"
  133. source "drivers/media/pci/Kconfig"
  134. source "drivers/media/platform/Kconfig"
  135. source "drivers/media/mmc/Kconfig"
  136. source "drivers/media/radio/Kconfig"
  137. comment "Supported FireWire (IEEE 1394) Adapters"
  138. depends on DVB_CORE && FIREWIRE
  139. source "drivers/media/firewire/Kconfig"
  140. # Common driver options
  141. source "drivers/media/common/Kconfig"
  142. comment "Media ancillary drivers (tuners, sensors, i2c, spi, frontends)"
  143. #
  144. # Ancillary drivers (tuners, i2c, spi, frontends)
  145. #
  146. config MEDIA_SUBDRV_AUTOSELECT
  147. bool "Autoselect ancillary drivers (tuners, sensors, i2c, spi, frontends)"
  148. depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_CAMERA_SUPPORT || MEDIA_SDR_SUPPORT
  149. depends on HAS_IOMEM
  150. select I2C
  151. select I2C_MUX
  152. default y
  153. help
  154. By default, a media driver auto-selects all possible ancillary
  155. devices such as tuners, sensors, video encoders/decoders and
  156. frontends, that are used by any of the supported devices.
  157. This is generally the right thing to do, except when there
  158. are strict constraints with regards to the kernel size,
  159. like on embedded systems.
  160. Use this option with care, as deselecting ancillary drivers which
  161. are, in fact, necessary will result in the lack of the needed
  162. functionality for your device (it may not tune or may not have
  163. the needed demodulators).
  164. If unsure say Y.
  165. config MEDIA_ATTACH
  166. bool
  167. depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT
  168. depends on MODULES
  169. default MODULES
  170. source "drivers/media/i2c/Kconfig"
  171. source "drivers/media/spi/Kconfig"
  172. source "drivers/media/tuners/Kconfig"
  173. source "drivers/media/dvb-frontends/Kconfig"
  174. endif # MEDIA_SUPPORT