Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35731dbb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: Add backend user count checking"

parents c5b24f32 05f43748
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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++) {
+4 −0
Original line number Diff line number Diff line
@@ -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;
			}
		}
	}