ASoC: wm_adsp: Allow preloader to do the final shutdown of the DSP
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 26 Sep 2016 09:15:24 +0000 (10:15 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 26 Sep 2016 16:03:54 +0000 (09:03 -0700)
commit57a60cc3616c8f5447d914b646a1d6df2ba9cc9d
tree45360b4c258a7873f543aa0d74920f219d6d8707
parent90d19ba54b428a6bc8cc51ef6c60c6e65e6e2f35
ASoC: wm_adsp: Allow preloader to do the final shutdown of the DSP

The booting process for the DSP is clearly separated into two parts, the
preloader brings up the core and downloads code, then the main widget
starts the code actually executing. However the shutdown sequence is all
handled with the main widget.

To allow the preloading to be run independently of the main audio bring
up it makes sense, and is generally just cleaner, for the preloader
widget to shutdown those things it initialised. This patch moves the
appropriate parts of the shutdown process into the preloader widget.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wm_adsp.h