aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/soc-pcm.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-06-15 16:15:44 +0100
committerMark Brown <broonie@kernel.org>2020-06-15 16:15:44 +0100
commit17212e7188783de75d2a1226c32d3fd7af96ad5d (patch)
tree08f4b2db5bcfba848dbb6d951cfecdf23b134e98 /sound/soc/soc-pcm.c
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407 (diff)
parent4036d05c38ca2f73c2ca182c3ebf0dfd066593a6 (diff)
Merge existing fixes from asoc/for-5.8
Diffstat (limited to 'sound/soc/soc-pcm.c')
-rw-r--r--sound/soc/soc-pcm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 2c114b4542ce..c517064f5391 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -2630,15 +2630,15 @@ static int soc_dpcm_fe_runtime_update(struct snd_soc_pcm_runtime *fe, int new)
int count, paths;
int ret;
+ if (!fe->dai_link->dynamic)
+ return 0;
+
if (fe->num_cpus > 1) {
dev_err(fe->dev,
"%s doesn't support Multi CPU yet\n", __func__);
return -EINVAL;
}
- if (!fe->dai_link->dynamic)
- return 0;
-
/* only check active links */
if (!snd_soc_dai_active(asoc_rtd_to_cpu(fe, 0)))
return 0;