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