diff options
author | Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> | 2021-01-20 16:28:44 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-01-21 13:36:24 +0100 |
commit | d52bbf747cfa8a2988289009241214a84982cc7d (patch) | |
tree | f48e378159fd6177c263271d22fdffe7b60ff83f /sound/soc/Kconfig | |
parent | Merge series "ASoC: mediatek: mt8192-mt6359: support DP audio" from Tzung-Bi ... (diff) | |
download | linux-d52bbf747cfa8a2988289009241214a84982cc7d.tar.xz linux-d52bbf747cfa8a2988289009241214a84982cc7d.zip |
ASoC: topology: KUnit: Add KUnit tests passing various arguments to snd_soc_tplg_component_load
In order to ensure correct behaviour of topology API, add unit tests
exercising topology functionality.
Start with adding cases for passing various arguments to
snd_soc_tplg_component_load as it is part of exposed topology API.
First test case adds test passing NULL component as argument.
Following one adds test case for passing NULL ops as argument.
Finally add test case passing NULL fw as argument.
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210120152846.1703655-4-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/Kconfig')
-rw-r--r-- | sound/soc/Kconfig | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sound/soc/Kconfig b/sound/soc/Kconfig index ba79d5f4e299..640494f76cbd 100644 --- a/sound/soc/Kconfig +++ b/sound/soc/Kconfig @@ -37,6 +37,23 @@ config SND_SOC_COMPRESS config SND_SOC_TOPOLOGY bool +config SND_SOC_TOPOLOGY_KUNIT_TESTS + tristate "KUnit tests for SoC topology" + depends on KUNIT + depends on SND_SOC_TOPOLOGY + default KUNIT_ALL_TESTS + help + If you want to perform tests on ALSA SoC topology support say Y here. + + This builds a module which can be later manually loaded to run KUNIT + test cases against soc-topology.c API. This should be primarily used + by developers to test their changes to ASoC. + + Do note that it creates fake playback devices which do not interact + well with userspace. When running tests one may want to disable + userspace applications such as pulseaudio, to prevent unnecessary + problems. + config SND_SOC_ACPI tristate |