OSDN Git Service

ASoC: SOF: Convert the generic IPC flood test into SOF client
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Thu, 10 Feb 2022 15:05:23 +0000 (17:05 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 10 Feb 2022 15:19:09 +0000 (15:19 +0000)
commit6e9548cdb30e5d6724236dd7b89a79a270751485
treedb8e876c26f81b258b4a60e0ba9bc82f99b7b792
parent1069967afe1e6b728061682ff99ec534a55a5613
ASoC: SOF: Convert the generic IPC flood test into SOF client

Move the IPC flood test code out from the debug file as separate SOF client
driver.

Based on the kernel configuration, the device registration for the new IPC
flood test is going to happen in the core.
With the separate client driver it is going to be possible to run multiple
flood tests in parallel to increase the stress, the new Kconfig option can
be used to select this (defaults to 1).
In order to preserve backward compatibility with existing SW/scripts, the
first IPC flood test's debugfs files have been linked to the old files.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Co-developed-by: Fred Oh <fred.oh@linux.intel.com>
Signed-off-by: Fred Oh <fred.oh@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220210150525.30756-8-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/Kconfig
sound/soc/sof/Makefile
sound/soc/sof/core.c
sound/soc/sof/debug.c
sound/soc/sof/sof-client-ipc-flood-test.c [new file with mode: 0644]
sound/soc/sof/sof-client.c
sound/soc/sof/sof-priv.h