|
@@ -1845,6 +1845,13 @@ static int snd_soc_dapm_set_pin(struct snd_soc_dapm_context *dapm,
|
|
|
*/
|
|
|
int snd_soc_dapm_sync(struct snd_soc_dapm_context *dapm)
|
|
|
{
|
|
|
+ /*
|
|
|
+ * Suppress early reports (eg, jacks syncing their state) to avoid
|
|
|
+ * silly DAPM runs during card startup.
|
|
|
+ */
|
|
|
+ if (!dapm->card || !dapm->card->instantiated)
|
|
|
+ return 0;
|
|
|
+
|
|
|
return dapm_power_widgets(dapm, SND_SOC_DAPM_STREAM_NOP);
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(snd_soc_dapm_sync);
|