2019-05-19 12:07:45 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2021-09-30 07:04:38 +00:00
|
|
|
menuconfig SND_SOC_SOF_TOPLEVEL
|
2019-04-12 16:09:02 +00:00
|
|
|
bool "Sound Open Firmware Support"
|
|
|
|
help
|
2020-11-12 16:44:23 +00:00
|
|
|
This adds support for Sound Open Firmware (SOF). SOF is free and
|
2019-04-12 16:09:02 +00:00
|
|
|
generic open source audio DSP firmware for multiple devices.
|
|
|
|
Say Y if you have such a device that is supported by SOF.
|
|
|
|
If unsure select "N".
|
|
|
|
|
|
|
|
if SND_SOC_SOF_TOPLEVEL
|
|
|
|
|
2021-03-02 00:31:21 +00:00
|
|
|
config SND_SOC_SOF_PCI_DEV
|
|
|
|
tristate
|
|
|
|
|
2019-04-12 16:09:02 +00:00
|
|
|
config SND_SOC_SOF_PCI
|
|
|
|
tristate "SOF PCI enumeration support"
|
2019-06-17 12:45:49 +00:00
|
|
|
depends on PCI
|
2019-04-12 16:09:02 +00:00
|
|
|
help
|
|
|
|
This adds support for PCI enumeration. This option is
|
2020-11-12 16:44:23 +00:00
|
|
|
required to enable Intel Skylake+ devices.
|
2021-03-02 00:31:21 +00:00
|
|
|
For backwards-compatibility with previous configurations the selection will
|
|
|
|
be used as default for platform-specific drivers.
|
2020-11-12 16:44:23 +00:00
|
|
|
Say Y if you need this option.
|
2019-04-12 16:09:02 +00:00
|
|
|
If unsure select "N".
|
|
|
|
|
|
|
|
config SND_SOC_SOF_ACPI
|
|
|
|
tristate "SOF ACPI enumeration support"
|
|
|
|
depends on ACPI || COMPILE_TEST
|
|
|
|
help
|
|
|
|
This adds support for ACPI enumeration. This option is required
|
2020-11-12 16:44:23 +00:00
|
|
|
to enable Intel Broadwell/Baytrail/Cherrytrail devices.
|
2021-03-02 00:31:20 +00:00
|
|
|
For backwards-compatibility with previous configurations the selection will
|
|
|
|
be used as default for platform-specific drivers.
|
2020-11-12 16:44:23 +00:00
|
|
|
Say Y if you need this option.
|
2019-04-12 16:09:02 +00:00
|
|
|
If unsure select "N".
|
|
|
|
|
2021-03-02 00:31:20 +00:00
|
|
|
config SND_SOC_SOF_ACPI_DEV
|
|
|
|
tristate
|
|
|
|
|
2019-08-21 16:47:29 +00:00
|
|
|
config SND_SOC_SOF_OF
|
|
|
|
tristate "SOF OF enumeration support"
|
|
|
|
depends on OF || COMPILE_TEST
|
|
|
|
help
|
|
|
|
This adds support for Device Tree enumeration. This option is
|
2021-11-18 10:07:46 +00:00
|
|
|
required to enable i.MX8 or Mediatek devices.
|
2019-08-21 16:47:29 +00:00
|
|
|
Say Y if you need this option. If unsure select "N".
|
|
|
|
|
2021-11-16 12:41:31 +00:00
|
|
|
config SND_SOC_SOF_OF_DEV
|
|
|
|
tristate
|
|
|
|
|
2021-10-04 15:21:47 +00:00
|
|
|
config SND_SOC_SOF_COMPRESS
|
2021-11-08 11:11:14 +00:00
|
|
|
bool
|
2021-10-04 15:21:47 +00:00
|
|
|
select SND_SOC_COMPRESS
|
|
|
|
|
2020-02-18 14:39:19 +00:00
|
|
|
config SND_SOC_SOF_DEBUG_PROBES
|
2022-02-10 15:05:25 +00:00
|
|
|
tristate
|
|
|
|
select SND_SOC_SOF_CLIENT
|
2020-02-18 14:39:20 +00:00
|
|
|
select SND_SOC_COMPRESS
|
2020-02-18 14:39:19 +00:00
|
|
|
help
|
|
|
|
This option enables the data probing feature that can be used to
|
|
|
|
gather data directly from specific points of the audio pipeline.
|
2022-02-10 15:05:25 +00:00
|
|
|
This option is not user-selectable but automagically handled by
|
|
|
|
'select' statements at a higher level.
|
2020-02-18 14:39:19 +00:00
|
|
|
|
2022-02-10 15:05:21 +00:00
|
|
|
config SND_SOC_SOF_CLIENT
|
|
|
|
tristate
|
|
|
|
select AUXILIARY_BUS
|
|
|
|
help
|
|
|
|
This option is not user-selectable but automagically handled by
|
|
|
|
'select' statements at a higher level.
|
|
|
|
|
2019-11-01 17:30:38 +00:00
|
|
|
config SND_SOC_SOF_DEVELOPER_SUPPORT
|
|
|
|
bool "SOF developer options support"
|
2021-12-16 23:03:50 +00:00
|
|
|
depends on EXPERT && SND_SOC_SOF
|
2019-04-12 16:09:02 +00:00
|
|
|
help
|
2020-11-12 16:44:23 +00:00
|
|
|
This option unlocks SOF developer options for debug/performance/
|
2019-11-01 17:30:38 +00:00
|
|
|
code hardening.
|
|
|
|
Distributions should not select this option, only SOF development
|
|
|
|
teams should select it.
|
2020-11-12 16:44:23 +00:00
|
|
|
Say Y if you are involved in SOF development and need this option.
|
|
|
|
If not, select N.
|
2019-04-12 16:09:02 +00:00
|
|
|
|
2019-11-01 17:30:38 +00:00
|
|
|
if SND_SOC_SOF_DEVELOPER_SUPPORT
|
2019-04-12 16:09:02 +00:00
|
|
|
|
2021-04-09 22:01:16 +00:00
|
|
|
config SND_SOC_SOF_FORCE_PROBE_WORKQUEUE
|
|
|
|
bool "SOF force probe workqueue"
|
|
|
|
select SND_SOC_SOF_PROBE_WORK_QUEUE
|
|
|
|
help
|
|
|
|
This option forces the use of a probe workqueue, which is only used
|
|
|
|
when HDaudio is enabled due to module dependencies. Forcing this
|
|
|
|
option is intended for debug only, but this should not add any
|
|
|
|
functional issues in nominal cases.
|
|
|
|
Say Y if you are involved in SOF development and need this option.
|
|
|
|
If not, select N.
|
|
|
|
|
2019-04-12 16:09:02 +00:00
|
|
|
config SND_SOC_SOF_NOCODEC
|
2019-05-10 16:38:03 +00:00
|
|
|
tristate
|
|
|
|
|
|
|
|
config SND_SOC_SOF_NOCODEC_SUPPORT
|
|
|
|
bool "SOF nocodec mode support"
|
2019-04-12 16:09:02 +00:00
|
|
|
help
|
|
|
|
This adds support for a dummy/nocodec machine driver fallback
|
|
|
|
option if no known codec is detected. This is typically only
|
|
|
|
enabled for developers or devices where the sound card is
|
2020-11-12 16:44:23 +00:00
|
|
|
controlled externally.
|
|
|
|
This option is mutually exclusive with the Intel HDAudio support.
|
|
|
|
Selecting it may have negative impacts and prevent e.g. microphone
|
2019-11-01 17:30:38 +00:00
|
|
|
functionality from being enabled on Intel CoffeeLake and later
|
|
|
|
platforms.
|
|
|
|
Distributions should not select this option!
|
2020-11-12 16:44:23 +00:00
|
|
|
Say Y if you need this nocodec fallback option.
|
2019-04-12 16:09:02 +00:00
|
|
|
If unsure select "N".
|
|
|
|
|
2019-04-30 23:09:16 +00:00
|
|
|
config SND_SOC_SOF_STRICT_ABI_CHECKS
|
|
|
|
bool "SOF strict ABI checks"
|
|
|
|
help
|
|
|
|
This option enables strict ABI checks for firmware and topology
|
|
|
|
files.
|
|
|
|
When these files are more recent than the kernel, the kernel
|
|
|
|
will handle the functionality it supports and may report errors
|
|
|
|
during topology creation or run-time usage if new functionality
|
|
|
|
is invoked.
|
|
|
|
This option will stop topology creation and firmware load upfront.
|
|
|
|
It is intended for SOF CI/releases and not for users or distros.
|
2020-11-12 16:44:23 +00:00
|
|
|
Say Y if you want strict ABI checks for an SOF release.
|
|
|
|
If you are not involved in SOF releases and CI development,
|
2019-04-30 23:09:16 +00:00
|
|
|
select "N".
|
|
|
|
|
2019-04-12 16:09:02 +00:00
|
|
|
config SND_SOC_SOF_DEBUG
|
|
|
|
bool "SOF debugging features"
|
|
|
|
help
|
|
|
|
This option can be used to enable or disable individual SOF firmware
|
|
|
|
and driver debugging options.
|
|
|
|
Say Y if you are debugging SOF FW or drivers.
|
|
|
|
If unsure select "N".
|
|
|
|
|
|
|
|
if SND_SOC_SOF_DEBUG
|
|
|
|
|
|
|
|
config SND_SOC_SOF_FORCE_NOCODEC_MODE
|
|
|
|
bool "SOF force nocodec Mode"
|
2019-05-10 16:38:03 +00:00
|
|
|
depends on SND_SOC_SOF_NOCODEC_SUPPORT
|
2019-04-12 16:09:02 +00:00
|
|
|
help
|
|
|
|
This forces SOF to use dummy/nocodec as machine driver, even
|
|
|
|
though there is a codec detected on the real platform. This is
|
|
|
|
typically only enabled for developers for debug purposes, before
|
|
|
|
codec/machine driver is ready, or to exclude the impact of those
|
2020-11-12 16:44:23 +00:00
|
|
|
drivers.
|
|
|
|
Say Y if you need this force nocodec mode option.
|
2019-04-12 16:09:02 +00:00
|
|
|
If unsure select "N".
|
|
|
|
|
|
|
|
config SND_SOC_SOF_DEBUG_XRUN_STOP
|
|
|
|
bool "SOF stop on XRUN"
|
|
|
|
help
|
|
|
|
This option forces PCMs to stop on any XRUN event. This is useful to
|
2020-12-16 12:59:13 +00:00
|
|
|
preserve any trace data and pipeline status prior to the XRUN.
|
2019-04-12 16:09:02 +00:00
|
|
|
Say Y if you are debugging SOF FW pipeline XRUNs.
|
|
|
|
If unsure select "N".
|
|
|
|
|
|
|
|
config SND_SOC_SOF_DEBUG_VERBOSE_IPC
|
|
|
|
bool "SOF verbose IPC logs"
|
|
|
|
help
|
|
|
|
This option enables more verbose IPC logs, with command types in
|
|
|
|
human-readable form instead of just 32-bit hex dumps. This is useful
|
|
|
|
if you are trying to debug IPC with the DSP firmware.
|
|
|
|
If unsure select "N".
|
|
|
|
|
|
|
|
config SND_SOC_SOF_DEBUG_FORCE_IPC_POSITION
|
|
|
|
bool "SOF force to use IPC for position update on SKL+"
|
|
|
|
help
|
2020-11-12 16:44:23 +00:00
|
|
|
This option forces to handle stream position update IPCs and run PCM
|
2019-04-12 16:09:02 +00:00
|
|
|
elapse to inform ALSA about that, on platforms (e.g. Intel SKL+) that
|
|
|
|
with other approach (e.g. HDAC DPIB/posbuf) to elapse PCM.
|
|
|
|
On platforms (e.g. Intel SKL-) where position update IPC is the only
|
|
|
|
one choice, this setting won't impact anything.
|
2020-11-12 16:44:23 +00:00
|
|
|
If you are trying to debug pointer update with position IPCs or where
|
2019-04-12 16:09:02 +00:00
|
|
|
DPIB/posbuf is not ready, select "Y".
|
|
|
|
If unsure select "N".
|
|
|
|
|
|
|
|
config SND_SOC_SOF_DEBUG_ENABLE_DEBUGFS_CACHE
|
|
|
|
bool "SOF enable debugfs caching"
|
|
|
|
help
|
|
|
|
This option enables caching of debugfs
|
|
|
|
memory -> DSP resource (memory, register, etc)
|
|
|
|
before the audio DSP is suspended. This will increase the suspend
|
|
|
|
latency and therefore should be used for debug purposes only.
|
|
|
|
Say Y if you want to enable caching the memory windows.
|
|
|
|
If unsure, select "N".
|
|
|
|
|
2019-09-27 20:05:28 +00:00
|
|
|
config SND_SOC_SOF_DEBUG_ENABLE_FIRMWARE_TRACE
|
|
|
|
bool "SOF enable firmware trace"
|
|
|
|
help
|
|
|
|
The firmware trace can be enabled either at build-time with
|
|
|
|
this option, or dynamically by setting flags in the SOF core
|
2020-11-12 16:44:23 +00:00
|
|
|
module parameter (similar to dynamic debug).
|
2019-09-27 20:05:28 +00:00
|
|
|
If unsure, select "N".
|
|
|
|
|
2019-06-03 16:18:20 +00:00
|
|
|
config SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST
|
2022-02-10 15:05:23 +00:00
|
|
|
tristate "SOF enable IPC flood test"
|
2022-08-23 12:15:53 +00:00
|
|
|
depends on SND_SOC_SOF
|
2022-02-10 15:05:23 +00:00
|
|
|
select SND_SOC_SOF_CLIENT
|
2019-06-03 16:18:20 +00:00
|
|
|
help
|
2022-02-10 15:05:23 +00:00
|
|
|
This option enables a separate client device for IPC flood test
|
|
|
|
which can be used to flood the DSP with test IPCs and gather stats
|
|
|
|
about response times.
|
2019-06-03 16:18:20 +00:00
|
|
|
Say Y if you want to enable IPC flood test.
|
|
|
|
If unsure, select "N".
|
|
|
|
|
2022-02-10 15:05:23 +00:00
|
|
|
config SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST_NUM
|
|
|
|
int "Number of IPC flood test clients"
|
|
|
|
range 1 32
|
|
|
|
default 2
|
|
|
|
depends on SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST
|
|
|
|
help
|
|
|
|
Select the number of IPC flood test clients to be created.
|
|
|
|
|
2021-11-16 15:21:37 +00:00
|
|
|
config SND_SOC_SOF_DEBUG_IPC_MSG_INJECTOR
|
2022-02-10 15:05:24 +00:00
|
|
|
tristate "SOF enable IPC message injector"
|
|
|
|
select SND_SOC_SOF_CLIENT
|
2021-11-16 15:21:37 +00:00
|
|
|
help
|
|
|
|
This option enables the IPC message injector which can be used to send
|
|
|
|
crafted IPC messages to the DSP to test its robustness.
|
|
|
|
Say Y if you want to enable the IPC message injector.
|
|
|
|
If unsure, select "N".
|
|
|
|
|
2019-09-27 20:05:29 +00:00
|
|
|
config SND_SOC_SOF_DEBUG_RETAIN_DSP_CONTEXT
|
|
|
|
bool "SOF retain DSP context on any FW exceptions"
|
|
|
|
help
|
|
|
|
This option keeps the DSP in D0 state so that firmware debug
|
|
|
|
information can be retained and dumped to userspace.
|
|
|
|
Say Y if you want to retain DSP context for FW exceptions.
|
|
|
|
If unsure, select "N".
|
|
|
|
|
2019-04-12 16:09:02 +00:00
|
|
|
endif ## SND_SOC_SOF_DEBUG
|
|
|
|
|
2019-11-01 17:30:38 +00:00
|
|
|
endif ## SND_SOC_SOF_DEVELOPER_SUPPORT
|
2019-04-12 16:09:02 +00:00
|
|
|
|
|
|
|
config SND_SOC_SOF
|
|
|
|
tristate
|
|
|
|
select SND_SOC_TOPOLOGY
|
2019-05-10 16:38:03 +00:00
|
|
|
select SND_SOC_SOF_NOCODEC if SND_SOC_SOF_NOCODEC_SUPPORT
|
2019-04-12 16:09:02 +00:00
|
|
|
help
|
|
|
|
This option is not user-selectable but automagically handled by
|
2020-11-12 16:44:23 +00:00
|
|
|
'select' statements at a higher level.
|
2019-04-12 16:09:02 +00:00
|
|
|
The selection is made at the top level and does not exactly follow
|
|
|
|
module dependencies but since the module or built-in type is decided
|
|
|
|
at the top level it doesn't matter.
|
|
|
|
|
|
|
|
config SND_SOC_SOF_PROBE_WORK_QUEUE
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
This option is not user-selectable but automagically handled by
|
2020-11-12 16:44:23 +00:00
|
|
|
'select' statements at a higher level.
|
2019-04-12 16:09:02 +00:00
|
|
|
When selected, the probe is handled in two steps, for example to
|
|
|
|
avoid lockdeps if request_module is used in the probe.
|
|
|
|
|
2022-06-14 07:56:17 +00:00
|
|
|
# Supported IPC versions
|
|
|
|
config SND_SOC_SOF_IPC3
|
|
|
|
bool
|
|
|
|
|
|
|
|
config SND_SOC_SOF_INTEL_IPC4
|
|
|
|
bool
|
|
|
|
|
2021-11-17 09:37:14 +00:00
|
|
|
source "sound/soc/sof/amd/Kconfig"
|
2019-08-21 16:47:30 +00:00
|
|
|
source "sound/soc/sof/imx/Kconfig"
|
2019-04-12 16:09:02 +00:00
|
|
|
source "sound/soc/sof/intel/Kconfig"
|
2021-11-18 10:07:42 +00:00
|
|
|
source "sound/soc/sof/mediatek/Kconfig"
|
2019-04-12 16:09:02 +00:00
|
|
|
source "sound/soc/sof/xtensa/Kconfig"
|
|
|
|
|
|
|
|
endif
|