summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm_adsp.c
diff options
context:
space:
mode:
authorStuart Henderson <stuarth@opensource.cirrus.com>2018-07-19 11:50:37 +0100
committerMark Brown <broonie@kernel.org>2018-07-19 15:09:41 +0100
commit868e49a4a00afaca07d2c450a02e49581eaece6c (patch)
tree0fcd1b871cfb98bd5c62f7b214f85aba931c95ca /sound/soc/codecs/wm_adsp.c
parentd30e23d69981a4b665f5ce8711335df986576389 (diff)
downloadlwn-868e49a4a00afaca07d2c450a02e49581eaece6c.tar.gz
lwn-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/codecs/wm_adsp.c')
-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);