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

Commit 2bb055f2 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: Add backend user count check"

parents 0b7a0c2b 87a38fb7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -680,6 +680,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
@@ -2732,6 +2732,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;
			}
		}
	}