diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2022-05-06 16:26:47 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-05-09 18:18:03 +0100 |
commit | 5889ccdd094ac32ee52851fc9eccd124897daf2b (patch) | |
tree | ceeca8b2f896d2dd172ab99a1bccc120d34a72e2 | |
parent | 066c67624d8ca2a2465690d4a7b7f52b880e9925 (diff) | |
download | linux-stable-5889ccdd094ac32ee52851fc9eccd124897daf2b.tar.gz linux-stable-5889ccdd094ac32ee52851fc9eccd124897daf2b.tar.bz2 linux-stable-5889ccdd094ac32ee52851fc9eccd124897daf2b.zip |
ASoC: SOF: sof-client: IPC flood test can only work with SOF_IPC
Currently the ipc flood test is only supported with SOF_IPC.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@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/20220506132647.18690-9-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/sof/sof-client.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sof/sof-client.c b/sound/soc/sof/sof-client.c index a664e0eb81fe..16cca666bb85 100644 --- a/sound/soc/sof/sof-client.c +++ b/sound/soc/sof/sof-client.c @@ -73,6 +73,9 @@ static int sof_register_ipc_flood_test(struct snd_sof_dev *sdev) int ret = 0; int i; + if (sdev->pdata->ipc_type != SOF_IPC) + return 0; + for (i = 0; i < CONFIG_SND_SOC_SOF_DEBUG_IPC_FLOOD_TEST_NUM; i++) { ret = sof_client_dev_register(sdev, "ipc_flood", i, NULL, 0); if (ret < 0) |