return id;
 }
 
+static bool soc_component_is_pcm(struct snd_soc_dai_link_component *dlc)
+{
+       struct snd_soc_dai *dai = snd_soc_find_dai_with_mutex(dlc);
+
+       if (dai && (dai->component->driver->pcm_construct ||
+                   dai->driver->pcm_new))
+               return true;
+
+       return false;
+}
+
 static int asoc_simple_parse_dai(struct device_node *ep,
                                 struct snd_soc_dai_link_component *dlc,
                                 int *is_single_link)
                                  int dup_codec)
 {
        struct device *dev = simple_priv_to_dev(priv);
+       struct snd_soc_card *card = simple_priv_to_card(priv);
        struct snd_soc_dai_link *dai_link = simple_priv_to_link(priv, li->link);
        struct simple_dai_props *dai_props = simple_priv_to_props(priv, li->link);
        struct device_node *top = dev->of_node;
                if (ret < 0)
                        goto out_put_node;
 
+               /*
+                * In BE<->BE connections it is not required to create
+                * PCM devices at CPU end of the dai link and thus 'no_pcm'
+                * flag needs to be set. It is useful when there are many
+                * BE components and some of these have to be connected to
+                * form a valid audio path.
+                *
+                * For example: FE <-> BE1 <-> BE2 <-> ... <-> BEn where
+                * there are 'n' BE components in the path.
+                */
+               if (card->component_chaining && !soc_component_is_pcm(cpus))
+                       dai_link->no_pcm = 1;
+
                /* card->num_links includes Codec */
                asoc_simple_canonicalize_cpu(dai_link, is_single_links);
        } else {