Message ID | E1eeJtI-00088G-G9@debutante |
---|---|
State | Accepted |
Commit | f30a4c313eb6d5027a85869d1ccf626208218ed0 |
Headers | show |
Series | Applied "ASoC: soc-pcm: don't call flush_delayed_work() many times in soc_pcm_private_free()" to the asoc tree | expand |
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 8075856668c2..998800cc44ef 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -2831,10 +2831,9 @@ static void soc_pcm_private_free(struct snd_pcm *pcm) struct snd_soc_rtdcom_list *rtdcom; struct snd_soc_component *component; + /* need to sync the delayed work before releasing resources */ + flush_delayed_work(&rtd->delayed_work); for_each_rtdcom(rtd, rtdcom) { - /* need to sync the delayed work before releasing resources */ - - flush_delayed_work(&rtd->delayed_work); component = rtdcom->component; if (component->pcm_free)