Kconfig 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menuconfig SND_SOC_SOF_TOPLEVEL
  3. bool "Sound Open Firmware Support"
  4. help
  5. This adds support for Sound Open Firmware (SOF). SOF is free and
  6. generic open source audio DSP firmware for multiple devices.
  7. Say Y if you have such a device that is supported by SOF.
  8. If unsure select "N".
  9. if SND_SOC_SOF_TOPLEVEL
  10. config SND_SOC_SOF_PCI_DEV
  11. tristate
  12. config SND_SOC_SOF_PCI
  13. tristate "SOF PCI enumeration support"
  14. depends on PCI
  15. help
  16. This adds support for PCI enumeration. This option is
  17. required to enable Intel Skylake+ devices.
  18. For backwards-compatibility with previous configurations the selection will
  19. be used as default for platform-specific drivers.
  20. Say Y if you need this option.
  21. If unsure select "N".
  22. config SND_SOC_SOF_ACPI
  23. tristate "SOF ACPI enumeration support"
  24. depends on ACPI || COMPILE_TEST
  25. help
  26. This adds support for ACPI enumeration. This option is required
  27. to enable Intel Broadwell/Baytrail/Cherrytrail devices.
  28. For backwards-compatibility with previous configurations the selection will
  29. be used as default for platform-specific drivers.
  30. Say Y if you need this option.
  31. If unsure select "N".
  32. config SND_SOC_SOF_ACPI_DEV
  33. tristate
  34. config SND_SOC_SOF_OF
  35. tristate "SOF OF enumeration support"
  36. depends on OF || COMPILE_TEST
  37. help
  38. This adds support for Device Tree enumeration. This option is
  39. required to enable i.MX8 or Mediatek devices.
  40. Say Y if you need this option. If unsure select "N".
  41. config SND_SOC_SOF_OF_DEV
  42. tristate
  43. config SND_SOC_SOF_COMPRESS
  44. bool
  45. select SND_SOC_COMPRESS
  46. config SND_SOC_SOF_DEBUG_PROBES
  47. tristate
  48. select SND_SOC_SOF_CLIENT
  49. select SND_SOC_COMPRESS
  50. help
  51. This option enables the data probing feature that can be used to
  52. gather data directly from specific points of the audio pipeline.
  53. This option is not user-selectable but automagically handled by
  54. 'select' statements at a higher level.
  55. config SND_SOC_SOF_CLIENT
  56. tristate
  57. select AUXILIARY_BUS
  58. help
  59. This option is not user-selectable but automagically handled by
  60. 'select' statements at a higher level.
  61. config SND_SOC_SOF_DEVELOPER_SUPPORT
  62. bool "SOF developer options support"
  63. depends on EXPERT && SND_SOC_SOF
  64. help
  65. This option unlocks SOF developer options for debug/performance/
  66. code hardening.
  67. Distributions should not select this option, only SOF development
  68. teams should select it.
  69. Say Y if you are involved in SOF development and need this option.
  70. If not, select N.
  71. if SND_SOC_SOF_DEVELOPER_SUPPORT
  72. config SND_SOC_SOF_FORCE_PROBE_WORKQUEUE
  73. bool "SOF force probe workqueue"
  74. select SND_SOC_SOF_PROBE_WORK_QUEUE
  75. help
  76. This option forces the use of a probe workqueue, which is only used
  77. when HDaudio is enabled due to module dependencies. Forcing this
  78. option is intended for debug only, but this should not add any
  79. functional issues in nominal cases.
  80. Say Y if you are involved in SOF development and need this option.
  81. If not, select N.
  82. config SND_SOC_SOF_NOCODEC
  83. tristate
  84. config SND_SOC_SOF_NOCODEC_SUPPORT
  85. bool "SOF nocodec mode support"
  86. help
  87. This adds support for a dummy/nocodec machine driver fallback
  88. option if no known codec is detected. This is typically only
  89. enabled for developers or devices where the sound card is
  90. controlled externally.
  91. This option is mutually exclusive with the Intel HDAudio support.
  92. Selecting it may have negative impacts and prevent e.g. microphone
  93. functionality from being enabled on Intel CoffeeLake and later
  94. platforms.
  95. Distributions should not select this option!
  96. Say Y if you need this nocodec fallback option.
  97. If unsure select "N".
  98. config SND_SOC_SOF_STRICT_ABI_CHECKS
  99. bool "SOF strict ABI checks"
  100. help
  101. This option enables strict ABI checks for firmware and topology
  102. files.
  103. When these files are more recent than the kernel, the kernel
  104. will handle the functionality it supports and may report errors
  105. during topology creation or run-time usage if new functionality
  106. is invoked.
  107. This option will stop topology creation and firmware load upfront.
  108. It is intended for SOF CI/releases and not for users or distros.
  109. Say Y if you want strict ABI checks for an SOF release.
  110. If you are not involved in SOF releases and CI development,
  111. select "N".
  112. config SND_SOC_SOF_DEBUG
  113. bool "SOF debugging features"
  114. help
  115. This option can be used to enable or disable individual SOF firmware
  116. and driver debugging options.
  117. Say Y if you are debugging SOF FW or drivers.
  118. If unsure select "N".
  119. if SND_SOC_SOF_DEBUG
  120. config SND_SOC_SOF_FORCE_NOCODEC_MODE
  121. bool "SOF force nocodec Mode"
  122. depends on SND_SOC_SOF_NOCODEC_SUPPORT
  123. help
  124. This forces SOF to use dummy/nocodec as machine driver, even
  125. though there is a codec detected on the real platform. This is
  126. typically only enabled for developers for debug purposes, before
  127. codec/machine driver is ready, or to exclude the impact of those
  128. drivers.
  129. Say Y if you need this force nocodec mode option.
  130. If unsure select "N".
  131. config SND_SOC_SOF_DEBUG_XRUN_STOP
  132. bool "SOF stop on XRUN"
  133. help
  134. This option forces PCMs to stop on any XRUN event. This is useful to
  135. preserve any trace data and pipeline status prior to the XRUN.
  136. Say Y if you are debugging SOF FW pipeline XRUNs.
  137. If unsure select "N".
  138. config SND_SOC_SOF_DEBUG_VERBOSE_IPC
  139. bool "SOF verbose IPC logs"
  140. help
  141. This option enables more verbose IPC logs, with command types in
  142. human-readable form instead of just 32-bit hex dumps. This is useful
  143. if you are trying to debug IPC with the DSP firmware.
  144. If unsure select "N".
  145. config SND_SOC_SOF_DEBUG_FORCE_IPC_POSITION
  146. bool "SOF force to use IPC for position update on SKL+"
  147. help
  148. This option forces to handle stream position update IPCs and run PCM
  149. elapse to inform ALSA about that, on platforms (e.g. Intel SKL+) that
  150. with other approach (e.g. HDAC DPIB/posbuf) to elapse PCM.
  151. On platforms (e.g. Intel SKL-) where position update IPC is the only
  152. one choice, this setting won't impact anything.
  153. If you are trying to debug pointer update with position IPCs or where
  154. DPIB/posbuf is not ready, select "Y".
  155. If unsure select "N".
  156. config SND_SOC_SOF_DEBUG_ENABLE_DEBUGFS_CACHE
  157. bool "SOF enable debugfs caching"
  158. help
  159. This option enables caching of debugfs
  160. memory -> DSP resource (memory, register, etc)
  161. before the audio DSP is suspended. This will increase the suspend
  162. latency and therefore should be used for debug purposes only.
  163. Say Y if you want to enable caching the memory windows.
  164. If unsure, select "N".
  165. config SND_SOC_SOF_DEBUG_ENABLE_FIRMWARE_TRACE
  166. bool "SOF enable firmware trace"
  167. help
  168. The firmware trace can be enabled either at build-time with
  169. this option, or dynamically by setting flags in the SOF core
  170. module parameter (similar to dynamic debug).
  171. If unsure, select "N".
  172. config SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST
  173. tristate "SOF enable IPC flood test"
  174. depends on SND_SOC_SOF
  175. select SND_SOC_SOF_CLIENT
  176. help
  177. This option enables a separate client device for IPC flood test
  178. which can be used to flood the DSP with test IPCs and gather stats
  179. about response times.
  180. Say Y if you want to enable IPC flood test.
  181. If unsure, select "N".
  182. config SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST_NUM
  183. int "Number of IPC flood test clients"
  184. range 1 32
  185. default 2
  186. depends on SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST
  187. help
  188. Select the number of IPC flood test clients to be created.
  189. config SND_SOC_SOF_DEBUG_IPC_MSG_INJECTOR
  190. tristate "SOF enable IPC message injector"
  191. depends on SND_SOC_SOF
  192. select SND_SOC_SOF_CLIENT
  193. help
  194. This option enables the IPC message injector which can be used to send
  195. crafted IPC messages to the DSP to test its robustness.
  196. Say Y if you want to enable the IPC message injector.
  197. If unsure, select "N".
  198. config SND_SOC_SOF_DEBUG_RETAIN_DSP_CONTEXT
  199. bool "SOF retain DSP context on any FW exceptions"
  200. help
  201. This option keeps the DSP in D0 state so that firmware debug
  202. information can be retained and dumped to userspace.
  203. Say Y if you want to retain DSP context for FW exceptions.
  204. If unsure, select "N".
  205. endif ## SND_SOC_SOF_DEBUG
  206. endif ## SND_SOC_SOF_DEVELOPER_SUPPORT
  207. config SND_SOC_SOF
  208. tristate
  209. select SND_SOC_TOPOLOGY
  210. select SND_SOC_SOF_NOCODEC if SND_SOC_SOF_NOCODEC_SUPPORT
  211. help
  212. This option is not user-selectable but automagically handled by
  213. 'select' statements at a higher level.
  214. The selection is made at the top level and does not exactly follow
  215. module dependencies but since the module or built-in type is decided
  216. at the top level it doesn't matter.
  217. config SND_SOC_SOF_PROBE_WORK_QUEUE
  218. bool
  219. help
  220. This option is not user-selectable but automagically handled by
  221. 'select' statements at a higher level.
  222. When selected, the probe is handled in two steps, for example to
  223. avoid lockdeps if request_module is used in the probe.
  224. # Supported IPC versions
  225. config SND_SOC_SOF_IPC3
  226. bool
  227. config SND_SOC_SOF_INTEL_IPC4
  228. bool
  229. source "sound/soc/sof/amd/Kconfig"
  230. source "sound/soc/sof/imx/Kconfig"
  231. source "sound/soc/sof/intel/Kconfig"
  232. source "sound/soc/sof/mediatek/Kconfig"
  233. source "sound/soc/sof/xtensa/Kconfig"
  234. endif