|
| 1 | +config SND_SOC_SOF_TOPLEVEL |
| 2 | + bool "Sound Open Firmware Support" |
| 3 | + help |
| 4 | + This adds support for Sound Open Firmware (SOF). SOF is a free and |
| 5 | + generic open source audio DSP firmware for multiple devices. |
| 6 | + Say Y if you have such a device that is supported by SOF. |
| 7 | + If unsure select "N". |
| 8 | + |
| 9 | +if SND_SOC_SOF_TOPLEVEL |
| 10 | + |
| 11 | +config SND_SOC_SOF_PCI |
| 12 | + tristate "SOF PCI enumeration support" |
| 13 | + depends on PCI |
| 14 | + select SND_SOC_SOF |
| 15 | + select SND_SOC_ACPI if ACPI |
| 16 | + select SND_SOC_SOF_OPTIONS |
| 17 | + select SND_SOC_SOF_INTEL_PCI if SND_SOC_SOF_INTEL_TOPLEVEL |
| 18 | + help |
| 19 | + This adds support for PCI enumeration. This option is |
| 20 | + required to enable Intel Skylake+ devices |
| 21 | + Say Y if you need this option |
| 22 | + If unsure select "N". |
| 23 | + |
| 24 | +config SND_SOC_SOF_ACPI |
| 25 | + tristate "SOF ACPI enumeration support" |
| 26 | + depends on ACPI || COMPILE_TEST |
| 27 | + select SND_SOC_SOF |
| 28 | + select SND_SOC_ACPI if ACPI |
| 29 | + select SND_SOC_SOF_OPTIONS |
| 30 | + select SND_SOC_SOF_INTEL_ACPI if SND_SOC_SOF_INTEL_TOPLEVEL |
| 31 | + select IOSF_MBI if X86 |
| 32 | + help |
| 33 | + This adds support for ACPI enumeration. This option is required |
| 34 | + to enable Intel Haswell/Broadwell/Baytrail/Cherrytrail devices |
| 35 | + Say Y if you need this option |
| 36 | + If unsure select "N". |
| 37 | + |
| 38 | +config SND_SOC_SOF_OPTIONS |
| 39 | + tristate |
| 40 | + help |
| 41 | + This option is not user-selectable but automagically handled by |
| 42 | + 'select' statements at a higher level |
| 43 | + |
| 44 | +if SND_SOC_SOF_OPTIONS |
| 45 | + |
| 46 | +config SND_SOC_SOF_NOCODEC |
| 47 | + tristate "SOF nocodec mode Support" |
| 48 | + help |
| 49 | + This adds support for a dummy/nocodec machine driver fallback |
| 50 | + option if no known codec is detected. This is typically only |
| 51 | + enabled for developers or devices where the sound card is |
| 52 | + controlled externally |
| 53 | + Say Y if you need this nocodec fallback option |
| 54 | + If unsure select "N". |
| 55 | + |
| 56 | +config SND_SOC_SOF_DEBUG |
| 57 | + bool "SOF debugging features" |
| 58 | + help |
| 59 | + This option can be used to enable or disable individual SOF firmware |
| 60 | + and driver debugging options. |
| 61 | + Say Y if you are debugging SOF FW or drivers. |
| 62 | + If unsure select "N". |
| 63 | + |
| 64 | +if SND_SOC_SOF_DEBUG |
| 65 | + |
| 66 | +config SND_SOC_SOF_FORCE_NOCODEC_MODE |
| 67 | + bool "SOF force nocodec Mode" |
| 68 | + depends on SND_SOC_SOF_NOCODEC |
| 69 | + help |
| 70 | + This forces SOF to use dummy/nocodec as machine driver, even |
| 71 | + though there is a codec detected on the real platform. This is |
| 72 | + typically only enabled for developers for debug purposes, before |
| 73 | + codec/machine driver is ready, or to exclude the impact of those |
| 74 | + drivers |
| 75 | + Say Y if you need this force nocodec mode option |
| 76 | + If unsure select "N". |
| 77 | + |
| 78 | +config SND_SOC_SOF_DEBUG_XRUN_STOP |
| 79 | + bool "SOF stop on XRUN" |
| 80 | + help |
| 81 | + This option forces PCMs to stop on any XRUN event. This is useful to |
| 82 | + preserve any trace data ond pipeline status prior to the XRUN. |
| 83 | + Say Y if you are debugging SOF FW pipeline XRUNs. |
| 84 | + If unsure select "N". |
| 85 | + |
| 86 | +config SND_SOC_SOF_DEBUG_VERBOSE_IPC |
| 87 | + bool "SOF verbose IPC logs" |
| 88 | + help |
| 89 | + This option enables more verbose IPC logs, with command types in |
| 90 | + human-readable form instead of just 32-bit hex dumps. This is useful |
| 91 | + if you are trying to debug IPC with the DSP firmware. |
| 92 | + If unsure select "N". |
| 93 | + |
| 94 | +config SND_SOC_SOF_DEBUG_FORCE_IPC_POSITION |
| 95 | + bool "SOF force to use IPC for position update on SKL+" |
| 96 | + help |
| 97 | + This option force to handle stream position update IPCs and run pcm |
| 98 | + elapse to inform ALSA about that, on platforms (e.g. Intel SKL+) that |
| 99 | + with other approach (e.g. HDAC DPIB/posbuf) to elapse PCM. |
| 100 | + On platforms (e.g. Intel SKL-) where position update IPC is the only |
| 101 | + one choice, this setting won't impact anything. |
| 102 | + if you are trying to debug pointer update with position IPCs or where |
| 103 | + DPIB/posbuf is not ready, select "Y". |
| 104 | + If unsure select "N". |
| 105 | + |
| 106 | +config SND_SOC_SOF_DEBUG_ENABLE_DEBUGFS_CACHE |
| 107 | + bool "SOF enable debugfs caching" |
| 108 | + help |
| 109 | + This option enables caching of debugfs |
| 110 | + memory -> DSP resource (memory, register, etc) |
| 111 | + before the audio DSP is suspended. This will increase the suspend |
| 112 | + latency and therefore should be used for debug purposes only. |
| 113 | + Say Y if you want to enable caching the memory windows. |
| 114 | + If unsure, select "N". |
| 115 | + |
| 116 | +endif ## SND_SOC_SOF_DEBUG |
| 117 | + |
| 118 | +endif ## SND_SOC_SOF_OPTIONS |
| 119 | + |
| 120 | +config SND_SOC_SOF |
| 121 | + tristate |
| 122 | + select SND_SOC_TOPOLOGY |
| 123 | + help |
| 124 | + This option is not user-selectable but automagically handled by |
| 125 | + 'select' statements at a higher level |
| 126 | + The selection is made at the top level and does not exactly follow |
| 127 | + module dependencies but since the module or built-in type is decided |
| 128 | + at the top level it doesn't matter. |
| 129 | + |
| 130 | +config SND_SOC_SOF_PROBE_WORK_QUEUE |
| 131 | + bool |
| 132 | + help |
| 133 | + This option is not user-selectable but automagically handled by |
| 134 | + 'select' statements at a higher level |
| 135 | + When selected, the probe is handled in two steps, for example to |
| 136 | + avoid lockdeps if request_module is used in the probe. |
| 137 | + |
| 138 | +source "sound/soc/sof/intel/Kconfig" |
| 139 | +source "sound/soc/sof/xtensa/Kconfig" |
| 140 | + |
| 141 | +endif |
0 commit comments