]> git.ipfire.org Git - thirdparty/kernel/stable.git/blob - sound/soc/sof/Kconfig
Merge tag 'sound-5.2-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[thirdparty/kernel/stable.git] / sound / soc / sof / Kconfig
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
10 if SND_SOC_SOF_TOPLEVEL
11
12 config SND_SOC_SOF_PCI
13 tristate "SOF PCI enumeration support"
14 depends on PCI
15 select SND_SOC_SOF
16 select SND_SOC_ACPI if ACPI
17 select SND_SOC_SOF_OPTIONS
18 select SND_SOC_SOF_INTEL_PCI if SND_SOC_SOF_INTEL_TOPLEVEL
19 help
20 This adds support for PCI enumeration. This option is
21 required to enable Intel Skylake+ devices
22 Say Y if you need this option
23 If unsure select "N".
24
25 config SND_SOC_SOF_ACPI
26 tristate "SOF ACPI enumeration support"
27 depends on ACPI || COMPILE_TEST
28 select SND_SOC_SOF
29 select SND_SOC_ACPI if ACPI
30 select SND_SOC_SOF_OPTIONS
31 select SND_SOC_SOF_INTEL_ACPI if SND_SOC_SOF_INTEL_TOPLEVEL
32 select IOSF_MBI if X86 && PCI
33 help
34 This adds support for ACPI enumeration. This option is required
35 to enable Intel Haswell/Broadwell/Baytrail/Cherrytrail devices
36 Say Y if you need this option
37 If unsure select "N".
38
39 config SND_SOC_SOF_OPTIONS
40 tristate
41 help
42 This option is not user-selectable but automagically handled by
43 'select' statements at a higher level
44
45 if SND_SOC_SOF_OPTIONS
46
47 config SND_SOC_SOF_NOCODEC
48 tristate
49
50 config SND_SOC_SOF_NOCODEC_SUPPORT
51 bool "SOF nocodec mode support"
52 help
53 This adds support for a dummy/nocodec machine driver fallback
54 option if no known codec is detected. This is typically only
55 enabled for developers or devices where the sound card is
56 controlled externally
57 Say Y if you need this nocodec fallback option
58 If unsure select "N".
59
60 config SND_SOC_SOF_STRICT_ABI_CHECKS
61 bool "SOF strict ABI checks"
62 help
63 This option enables strict ABI checks for firmware and topology
64 files.
65 When these files are more recent than the kernel, the kernel
66 will handle the functionality it supports and may report errors
67 during topology creation or run-time usage if new functionality
68 is invoked.
69 This option will stop topology creation and firmware load upfront.
70 It is intended for SOF CI/releases and not for users or distros.
71 Say Y if you want strict ABI checks for an SOF release
72 If you are not involved in SOF releases and CI development
73 select "N".
74
75 config SND_SOC_SOF_DEBUG
76 bool "SOF debugging features"
77 help
78 This option can be used to enable or disable individual SOF firmware
79 and driver debugging options.
80 Say Y if you are debugging SOF FW or drivers.
81 If unsure select "N".
82
83 if SND_SOC_SOF_DEBUG
84
85 config SND_SOC_SOF_FORCE_NOCODEC_MODE
86 bool "SOF force nocodec Mode"
87 depends on SND_SOC_SOF_NOCODEC_SUPPORT
88 help
89 This forces SOF to use dummy/nocodec as machine driver, even
90 though there is a codec detected on the real platform. This is
91 typically only enabled for developers for debug purposes, before
92 codec/machine driver is ready, or to exclude the impact of those
93 drivers
94 Say Y if you need this force nocodec mode option
95 If unsure select "N".
96
97 config SND_SOC_SOF_DEBUG_XRUN_STOP
98 bool "SOF stop on XRUN"
99 help
100 This option forces PCMs to stop on any XRUN event. This is useful to
101 preserve any trace data ond pipeline status prior to the XRUN.
102 Say Y if you are debugging SOF FW pipeline XRUNs.
103 If unsure select "N".
104
105 config SND_SOC_SOF_DEBUG_VERBOSE_IPC
106 bool "SOF verbose IPC logs"
107 help
108 This option enables more verbose IPC logs, with command types in
109 human-readable form instead of just 32-bit hex dumps. This is useful
110 if you are trying to debug IPC with the DSP firmware.
111 If unsure select "N".
112
113 config SND_SOC_SOF_DEBUG_FORCE_IPC_POSITION
114 bool "SOF force to use IPC for position update on SKL+"
115 help
116 This option force to handle stream position update IPCs and run pcm
117 elapse to inform ALSA about that, on platforms (e.g. Intel SKL+) that
118 with other approach (e.g. HDAC DPIB/posbuf) to elapse PCM.
119 On platforms (e.g. Intel SKL-) where position update IPC is the only
120 one choice, this setting won't impact anything.
121 if you are trying to debug pointer update with position IPCs or where
122 DPIB/posbuf is not ready, select "Y".
123 If unsure select "N".
124
125 config SND_SOC_SOF_DEBUG_ENABLE_DEBUGFS_CACHE
126 bool "SOF enable debugfs caching"
127 help
128 This option enables caching of debugfs
129 memory -> DSP resource (memory, register, etc)
130 before the audio DSP is suspended. This will increase the suspend
131 latency and therefore should be used for debug purposes only.
132 Say Y if you want to enable caching the memory windows.
133 If unsure, select "N".
134
135 endif ## SND_SOC_SOF_DEBUG
136
137 endif ## SND_SOC_SOF_OPTIONS
138
139 config SND_SOC_SOF
140 tristate
141 select SND_SOC_TOPOLOGY
142 select SND_SOC_SOF_NOCODEC if SND_SOC_SOF_NOCODEC_SUPPORT
143 help
144 This option is not user-selectable but automagically handled by
145 'select' statements at a higher level
146 The selection is made at the top level and does not exactly follow
147 module dependencies but since the module or built-in type is decided
148 at the top level it doesn't matter.
149
150 config SND_SOC_SOF_PROBE_WORK_QUEUE
151 bool
152 help
153 This option is not user-selectable but automagically handled by
154 'select' statements at a higher level
155 When selected, the probe is handled in two steps, for example to
156 avoid lockdeps if request_module is used in the probe.
157
158 source "sound/soc/sof/intel/Kconfig"
159 source "sound/soc/sof/xtensa/Kconfig"
160
161 endif