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

Commit e6fa66d0 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" into msm-4.9

parents c8197dad e0c24ee8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -528,6 +528,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
@@ -2521,6 +2521,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;
			}
		}
	}