]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: topology: KUnit: Add KUnit tests passing various arguments to snd_soc_tplg_comp...
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Wed, 20 Jan 2021 15:28:44 +0000 (16:28 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 21 Jan 2021 12:36:24 +0000 (12:36 +0000)
commit2f5880a7fd1c11fd3355912ebf36480a739934f2
treef48e378159fd6177c263271d22fdffe7b60ff83f
parent63629490b074e0acafd726335e1dc34fe05b3e45
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>
sound/soc/Kconfig
sound/soc/Makefile
sound/soc/soc-topology-test.c [new file with mode: 0644]