Merge "ASoC: Add backend user count checking"

This commit is contained in:
Linux Build Service Account 2017-03-07 06:25:14 -08:00 committed by Gerrit - the friendly Code Review server
commit 35731dbb93
2 changed files with 9 additions and 0 deletions

View file

@ -527,6 +527,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++) {

View file

@ -2403,6 +2403,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;
}
}
}