diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2022-05-06 15:26:47 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-05-09 19:18:03 +0200 |
commit | 5889ccdd094ac32ee52851fc9eccd124897daf2b (patch) | |
tree | ceeca8b2f896d2dd172ab99a1bccc120d34a72e2 /sound/soc/sof | |
parent | ASoC: SOF: ipc-msg-injector: Add support for IPC4 messages (diff) | |
download | linux-5889ccdd094ac32ee52851fc9eccd124897daf2b.tar.xz linux-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>
Diffstat (limited to 'sound/soc/sof')
-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) |