summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorStuart Henderson2018-07-19 12:50:37 +0200
committerMark Brown2018-07-19 16:09:41 +0200
commit868e49a4a00afaca07d2c450a02e49581eaece6c (patch)
tree0fcd1b871cfb98bd5c62f7b214f85aba931c95ca /sound/soc
parentASoC: hdmi-codec: fix routing (diff)
downloadkernel-qcow2-linux-868e49a4a00afaca07d2c450a02e49581eaece6c.tar.gz
kernel-qcow2-linux-868e49a4a00afaca07d2c450a02e49581eaece6c.tar.xz
kernel-qcow2-linux-868e49a4a00afaca07d2c450a02e49581eaece6c.zip
ASoC: wm_adsp: Ensure DSP boot work complete before preloader_put return
All controls derived from the loaded firmware should be created prior to returning from the preloader's put function, such that they are immediately available to user-space. Signed-off-by: Stuart Henderson <stuarth@opensource.cirrus.com> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/wm_adsp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index b7b914963c62..4e7f8525449e 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -2672,6 +2672,8 @@ int wm_adsp2_preloader_put(struct snd_kcontrol *kcontrol,
snd_soc_dapm_sync(dapm);
+ flush_work(&dsp->boot_work);
+
return 0;
}
EXPORT_SYMBOL_GPL(wm_adsp2_preloader_put);