ARM64: dts: rk3399-android: change i2s2 bclk to 128fs for hdmi
[firefly-linux-kernel-4.4.55.git] / sound / soc / soc-topology.c
index 50f21ed00cfa375685d967ece4c17ccc7a86df91..70396d3f64728bad98d7f5a665ebfb66351bfdf9 100644 (file)
@@ -1484,6 +1484,7 @@ widget:
        if (widget == NULL) {
                dev_err(tplg->dev, "ASoC: failed to create widget %s controls\n",
                        w->name);
+               ret = -ENOMEM;
                goto hdr_err;
        }
 
@@ -1805,6 +1806,7 @@ void snd_soc_tplg_widget_remove_all(struct snd_soc_dapm_context *dapm,
                snd_soc_tplg_widget_remove(w);
                snd_soc_dapm_free_widget(w);
        }
+       snd_soc_dapm_reset_cache(dapm);
 }
 EXPORT_SYMBOL_GPL(snd_soc_tplg_widget_remove_all);