|
@@ -2293,6 +2293,12 @@ void snd_soc_dapm_free_widget(struct snd_soc_dapm_widget *w)
|
|
|
kfree(w);
|
|
|
}
|
|
|
|
|
|
+void snd_soc_dapm_reset_cache(struct snd_soc_dapm_context *dapm)
|
|
|
+{
|
|
|
+ dapm->path_sink_cache.widget = NULL;
|
|
|
+ dapm->path_source_cache.widget = NULL;
|
|
|
+}
|
|
|
+
|
|
|
/* free all dapm widgets and resources */
|
|
|
static void dapm_free_widgets(struct snd_soc_dapm_context *dapm)
|
|
|
{
|
|
@@ -2303,6 +2309,7 @@ static void dapm_free_widgets(struct snd_soc_dapm_context *dapm)
|
|
|
continue;
|
|
|
snd_soc_dapm_free_widget(w);
|
|
|
}
|
|
|
+ snd_soc_dapm_reset_cache(dapm);
|
|
|
}
|
|
|
|
|
|
static struct snd_soc_dapm_widget *dapm_find_widget(
|