]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - sound/soc/soc-dapm.c
Merge branch 'asoc-4.18' into asoc-linus
[thirdparty/kernel/stable.git] / sound / soc / soc-dapm.c
index 229c123498030b092e3f82a7c021128ec5618d55..a099c3e4550478e81b16546bfc0012e407d15d24 100644 (file)
@@ -4073,6 +4073,13 @@ int snd_soc_dapm_link_dai_widgets(struct snd_soc_card *card)
                        continue;
                }
 
+               /* let users know there is no DAI to link */
+               if (!dai_w->priv) {
+                       dev_dbg(card->dev, "dai widget %s has no DAI\n",
+                               dai_w->name);
+                       continue;
+               }
+
                dai = dai_w->priv;
 
                /* ...find all widgets with the same stream and link them */