diff options
author | Mark Brown <broonie@kernel.org> | 2018-06-22 17:47:23 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-06-22 17:47:23 +0300 |
commit | 44fedd7da485bafcc5eee8794fa54cfc0c047dd4 (patch) | |
tree | 3a6e3dd5f5c3ef4b4bde4026c6b50197d95ddf7d /sound/soc/soc-dapm.c | |
parent | 3bec6fa3cdd338860d4b7d4110a49292646d801e (diff) | |
parent | 1b31de922e28de2bf2078b7a1e341ad4aee6aa03 (diff) | |
download | linux-44fedd7da485bafcc5eee8794fa54cfc0c047dd4.tar.xz |
Merge branch 'asoc-4.18' into asoc-4.19 for amd dep
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 229c12349803..a099c3e45504 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -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 */ |