307 lines · plain
1# SPDX-License-Identifier: GPL-2.0-only2menuconfig SND_SOC_SOF_TOPLEVEL3 bool "Sound Open Firmware Support"4 help5 This adds support for Sound Open Firmware (SOF). SOF is free and6 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 10if SND_SOC_SOF_TOPLEVEL11 12config SND_SOC_SOF_PCI_DEV13 tristate14 15config SND_SOC_SOF_PCI16 tristate "SOF PCI enumeration support"17 depends on PCI18 help19 This adds support for PCI enumeration. This option is20 required to enable Intel Skylake+ devices.21 For backwards-compatibility with previous configurations the selection will22 be used as default for platform-specific drivers.23 Say Y if you need this option.24 If unsure select "N".25 26config SND_SOC_SOF_ACPI27 tristate "SOF ACPI enumeration support"28 depends on ACPI || COMPILE_TEST29 help30 This adds support for ACPI enumeration. This option is required31 to enable Intel Broadwell/Baytrail/Cherrytrail devices.32 For backwards-compatibility with previous configurations the selection will33 be used as default for platform-specific drivers.34 Say Y if you need this option.35 If unsure select "N".36 37config SND_SOC_SOF_ACPI_DEV38 tristate39 40config SND_SOC_SOF_OF41 tristate "SOF OF enumeration support"42 depends on OF43 help44 This adds support for Device Tree enumeration. This option is45 required to enable i.MX8 or Mediatek devices.46 Say Y if you need this option. If unsure select "N".47 48config SND_SOC_SOF_OF_DEV49 tristate50 51config SND_SOC_SOF_COMPRESS52 bool53 select SND_SOC_COMPRESS54 55config SND_SOC_SOF_DEBUG_PROBES56 tristate57 select SND_SOC_SOF_CLIENT58 select SND_SOC_COMPRESS59 help60 This option enables the data probing feature that can be used to61 gather data directly from specific points of the audio pipeline.62 This option is not user-selectable but automagically handled by63 'select' statements at a higher level.64 65config SND_SOC_SOF_CLIENT66 tristate67 select AUXILIARY_BUS68 help69 This option is not user-selectable but automagically handled by70 'select' statements at a higher level.71 72config SND_SOC_SOF_DEVELOPER_SUPPORT73 bool "SOF developer options support"74 depends on EXPERT && SND_SOC_SOF75 help76 This option unlocks SOF developer options for debug/performance/77 code hardening.78 Distributions should not select this option, only SOF development79 teams should select it.80 Say Y if you are involved in SOF development and need this option.81 If not, select N.82 83if SND_SOC_SOF_DEVELOPER_SUPPORT84 85config SND_SOC_SOF_FORCE_PROBE_WORKQUEUE86 bool "SOF force probe workqueue"87 select SND_SOC_SOF_PROBE_WORK_QUEUE88 help89 This option forces the use of a probe workqueue, which is only used90 when HDaudio is enabled due to module dependencies. Forcing this91 option is intended for debug only, but this should not add any92 functional issues in nominal cases.93 Say Y if you are involved in SOF development and need this option.94 If not, select N.95 96config SND_SOC_SOF_NOCODEC97 tristate98 99config SND_SOC_SOF_NOCODEC_SUPPORT100 bool "SOF nocodec static mode support"101 help102 This adds support for a dummy/nocodec machine driver fallback103 option if no known codec is detected. This is typically only104 enabled for developers or devices where the sound card is105 controlled externally.106 This option is mutually exclusive at build time with the Intel HDAudio support.107 Selecting it may have negative impacts and prevent e.g. microphone108 functionality from being enabled on Intel CoffeeLake and later109 platforms.110 Distributions should not select this option!111 Say Y if you need this nocodec fallback option.112 If unsure select "N".113 114config SND_SOC_SOF_STRICT_ABI_CHECKS115 bool "SOF strict ABI checks"116 help117 This option enables strict ABI checks for firmware and topology118 files.119 When these files are more recent than the kernel, the kernel120 will handle the functionality it supports and may report errors121 during topology creation or run-time usage if new functionality122 is invoked.123 This option will stop topology creation and firmware load upfront.124 It is intended for SOF CI/releases and not for users or distros.125 Say Y if you want strict ABI checks for an SOF release.126 If you are not involved in SOF releases and CI development,127 select "N".128 129config SND_SOC_SOF_ALLOW_FALLBACK_TO_NEWER_IPC_VERSION130 bool "SOF allow fallback to newer IPC version"131 help132 This option will allow the kernel to try to 'fallback' to a newer IPC133 version if there are missing firmware files to satisfy the default IPC134 version.135 IPC version fallback to older versions is not affected by this option,136 it is always available.137 Say Y if you are involved in SOF development and need this option.138 If not, select N.139 140config SND_SOC_SOF_DEBUG141 bool "SOF debugging features"142 help143 This option can be used to enable or disable individual SOF firmware144 and driver debugging options.145 Say Y if you are debugging SOF FW or drivers.146 If unsure select "N".147 148if SND_SOC_SOF_DEBUG149 150config SND_SOC_SOF_NOCODEC_DEBUG_SUPPORT151 bool "SOF nocodec debug mode support"152 depends on !SND_SOC_SOF_NOCODEC_SUPPORT153 help154 This adds support for a dummy/nocodec machine driver fallback155 option.156 Unlike the SND_SOC_SOF_NOCODEC_SUPPORT, this option is NOT157 mutually exclusive at build with the Intel HDAudio support. The158 selection will be done depending on command line or modprobe.d settings159 Distributions should not select this option!160 Say Y if you need this nocodec debug fallback option.161 If unsure select "N".162 163config SND_SOC_SOF_FORCE_NOCODEC_MODE164 bool "SOF force nocodec Mode"165 depends on SND_SOC_SOF_NOCODEC_SUPPORT166 help167 This forces SOF to use dummy/nocodec as machine driver, even168 though there is a codec detected on the real platform. This is169 typically only enabled for developers for debug purposes, before170 codec/machine driver is ready, or to exclude the impact of those171 drivers.172 Say Y if you need this force nocodec mode option.173 If unsure select "N".174 175config SND_SOC_SOF_DEBUG_XRUN_STOP176 bool "SOF stop on XRUN"177 help178 This option forces PCMs to stop on any XRUN event. This is useful to179 preserve any trace data and pipeline status prior to the XRUN.180 Say Y if you are debugging SOF FW pipeline XRUNs.181 If unsure select "N".182 183config SND_SOC_SOF_DEBUG_VERBOSE_IPC184 bool "SOF verbose IPC logs"185 help186 This option enables more verbose IPC logs, with command types in187 human-readable form instead of just 32-bit hex dumps. This is useful188 if you are trying to debug IPC with the DSP firmware.189 If unsure select "N".190 191config SND_SOC_SOF_DEBUG_FORCE_IPC_POSITION192 bool "SOF force to use IPC for position update on SKL+"193 help194 This option forces to handle stream position update IPCs and run PCM195 elapse to inform ALSA about that, on platforms (e.g. Intel SKL+) that196 with other approach (e.g. HDAC DPIB/posbuf) to elapse PCM.197 On platforms (e.g. Intel SKL-) where position update IPC is the only198 one choice, this setting won't impact anything.199 If you are trying to debug pointer update with position IPCs or where200 DPIB/posbuf is not ready, select "Y".201 If unsure select "N".202 203config SND_SOC_SOF_DEBUG_ENABLE_DEBUGFS_CACHE204 bool "SOF enable debugfs caching"205 help206 This option enables caching of debugfs207 memory -> DSP resource (memory, register, etc)208 before the audio DSP is suspended. This will increase the suspend209 latency and therefore should be used for debug purposes only.210 Say Y if you want to enable caching the memory windows.211 If unsure, select "N".212 213config SND_SOC_SOF_DEBUG_ENABLE_FIRMWARE_TRACE214 bool "SOF enable firmware trace"215 help216 The firmware trace can be enabled either at build-time with217 this option, or dynamically by setting flags in the SOF core218 module parameter (similar to dynamic debug).219 If unsure, select "N".220 221config SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST222 tristate "SOF enable IPC flood test"223 depends on SND_SOC_SOF224 select SND_SOC_SOF_CLIENT225 help226 This option enables a separate client device for IPC flood test227 which can be used to flood the DSP with test IPCs and gather stats228 about response times.229 Say Y if you want to enable IPC flood test.230 If unsure, select "N".231 232config SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST_NUM233 int "Number of IPC flood test clients"234 range 1 32235 default 2236 depends on SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST237 help238 Select the number of IPC flood test clients to be created.239 240config SND_SOC_SOF_DEBUG_IPC_MSG_INJECTOR241 tristate "SOF enable IPC message injector"242 depends on SND_SOC_SOF243 select SND_SOC_SOF_CLIENT244 help245 This option enables the IPC message injector which can be used to send246 crafted IPC messages to the DSP to test its robustness.247 Say Y if you want to enable the IPC message injector.248 If unsure, select "N".249 250config SND_SOC_SOF_DEBUG_IPC_KERNEL_INJECTOR251 tristate "SOF enable IPC kernel injector"252 depends on SND_SOC_SOF253 select SND_SOC_SOF_CLIENT254 help255 This option enables the IPC kernel injector which can be used to send256 crafted IPC messages to the kernel to test its robustness against257 DSP messages.258 Say Y if you want to enable the IPC kernel injector.259 If unsure, select "N".260 261config SND_SOC_SOF_DEBUG_RETAIN_DSP_CONTEXT262 bool "SOF retain DSP context on any FW exceptions"263 help264 This option keeps the DSP in D0 state so that firmware debug265 information can be retained and dumped to userspace.266 Say Y if you want to retain DSP context for FW exceptions.267 If unsure, select "N".268 269endif ## SND_SOC_SOF_DEBUG270 271endif ## SND_SOC_SOF_DEVELOPER_SUPPORT272 273config SND_SOC_SOF274 tristate275 select SND_SOC_TOPOLOGY276 select SND_SOC_SOF_NOCODEC if SND_SOC_SOF_NOCODEC_SUPPORT277 select SND_SOC_SOF_NOCODEC if SND_SOC_SOF_NOCODEC_DEBUG_SUPPORT278 help279 This option is not user-selectable but automagically handled by280 'select' statements at a higher level.281 The selection is made at the top level and does not exactly follow282 module dependencies but since the module or built-in type is decided283 at the top level it doesn't matter.284 285config SND_SOC_SOF_PROBE_WORK_QUEUE286 bool287 help288 This option is not user-selectable but automagically handled by289 'select' statements at a higher level.290 When selected, the probe is handled in two steps, for example to291 avoid lockdeps if request_module is used in the probe.292 293# Supported IPC versions294config SND_SOC_SOF_IPC3295 bool296 297config SND_SOC_SOF_IPC4298 bool299 300source "sound/soc/sof/amd/Kconfig"301source "sound/soc/sof/imx/Kconfig"302source "sound/soc/sof/intel/Kconfig"303source "sound/soc/sof/mediatek/Kconfig"304source "sound/soc/sof/xtensa/Kconfig"305 306endif307