From: Peter Ujfalusi Date: Fri, 6 May 2022 13:26:47 +0000 (+0300) Subject: ASoC: SOF: sof-client: IPC flood test can only work with SOF_IPC X-Git-Tag: v6.6.17~6759^2~68^2~51^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5889ccdd094ac32ee52851fc9eccd124897daf2b;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Bard Liao Reviewed-by: Rander Wang Reviewed-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Link: https://lore.kernel.org/r/20220506132647.18690-9-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/sof-client.c b/sound/soc/sof/sof-client.c index a664e0e..16cca66 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)