diff options
author | Mark Brown <broonie@kernel.org> | 2023-08-17 19:18:58 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-08-17 22:38:42 +0100 |
commit | cfee987c92362331ea754c0fb092d5f37de0f2fb (patch) | |
tree | d8374ba1ba7975b3ec3c2b4c5dc71bf85cb72fc5 /sound/soc/sof | |
parent | 44cb08fd23feccc1e1a5019e8ddc926b01db259e (diff) | |
parent | ab0b5072d184bdb013c9c2419cb21c593fa3802a (diff) | |
download | linux-stable-cfee987c92362331ea754c0fb092d5f37de0f2fb.tar.gz linux-stable-cfee987c92362331ea754c0fb092d5f37de0f2fb.tar.bz2 linux-stable-cfee987c92362331ea754c0fb092d5f37de0f2fb.zip |
ASoC: Merge up fixes
For the benefit of CI.
Diffstat (limited to 'sound/soc/sof')
-rw-r--r-- | sound/soc/sof/ipc4-pcm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/sof/ipc4-pcm.c b/sound/soc/sof/ipc4-pcm.c index 802cbf73594e..db19cd03ecad 100644 --- a/sound/soc/sof/ipc4-pcm.c +++ b/sound/soc/sof/ipc4-pcm.c @@ -709,6 +709,9 @@ static int sof_ipc4_pcm_hw_params(struct snd_soc_component *component, struct snd_sof_pcm *spcm; spcm = snd_sof_find_spcm_dai(component, rtd); + if (!spcm) + return -EINVAL; + time_info = spcm->stream[substream->stream].private; /* delay calculation is not supported by current fw_reg ABI */ if (!time_info) |