diff --git a/sound/soc/soc-compress.c b/sound/soc/soc-compress.c index 026e51b5ed12264fbaf9a69b6bb98be24ccb122e..bec8016937a24d1047b6134137a17340a40bea89 100644 --- a/sound/soc/soc-compress.c +++ b/sound/soc/soc-compress.c @@ -573,6 +573,11 @@ static int soc_compr_set_params_fe(struct snd_compr_stream *cstream, cstream, &async_domain); } else { be_list[j++] = be; + if (j == DPCM_MAX_BE_USERS) { + dev_dbg(fe->dev, + "ASoC: MAX backend users!\n"); + break; + } } } for (i = 0; i < j; i++) { diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 425250cc4a64182e67dae71edbd18d56703a9826..712ef982c27195c909856121ffe17be81d086c36 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -1872,6 +1872,10 @@ void dpcm_be_dai_prepare_async(struct snd_soc_pcm_runtime *fe, int stream, dpcm, domain); } else { dpcm_async[i++] = dpcm; + if (i == DPCM_MAX_BE_USERS) { + dev_dbg(fe->dev, "ASoC: MAX backend users!\n"); + break; + } } }