ASoC: SOF: ipc4-pcm: Do not run the trigger pipelines if no spipe is stored
[platform/kernel/linux-rpi.git] / sound / soc / sof / ipc4-pcm.c
index 2d89d37..521090d 100644 (file)
@@ -213,7 +213,7 @@ static int sof_ipc4_trigger_pipelines(struct snd_soc_component *component,
        pipeline_list = &spcm->stream[substream->stream].pipeline_list;
 
        /* nothing to trigger if the list is empty */
-       if (!pipeline_list->pipelines)
+       if (!pipeline_list->pipelines || !pipeline_list->count)
                return 0;
 
        /* allocate memory for the pipeline data */