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