Kconfig 7.2 KB

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