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

Commit 25e96b14 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: Add backend user count check"

parents 3584a820 4f36922d
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -691,6 +691,11 @@ static int soc_compr_set_params_fe(struct snd_compr_stream *cstream,
				cstream, &async_domain);
				cstream, &async_domain);
			} else {
			} else {
				be_list[j++] = be;
				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++) {
		for (i = 0; i < j; i++) {
+4 −0
Original line number Original line Diff line number Diff line
@@ -2761,6 +2761,10 @@ void dpcm_be_dai_prepare_async(struct snd_soc_pcm_runtime *fe, int stream,
							    dpcm, domain);
							    dpcm, domain);
		} else {
		} else {
			dpcm_async[i++] = dpcm;
			dpcm_async[i++] = dpcm;
			if (i == DPCM_MAX_BE_USERS) {
				dev_dbg(fe->dev, "ASoC: MAX backend users!\n");
				break;
			}
		}
		}
	}
	}