ASoC: wm_adsp: Separate concept of booted and running
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Tue, 20 Sep 2016 12:52:32 +0000 (13:52 +0100)
committerMark Brown <broonie@kernel.org>
Sat, 24 Sep 2016 18:34:17 +0000 (19:34 +0100)
commit28823ebad5e73bd717ca820929de2d18415d9822
tree9c9f95311f1e3bf6cc88b86a8049f476839c01c3
parent0f72a8a39cd033a26bddafe2b101d12cac039bdc
ASoC: wm_adsp: Separate concept of booted and running

Currently the wm_adsp driver has a flag that indicates the DSP is
"running", this flag is used to gate access to the hardware.  However this
flag is actually set in the firmware download thread after the firmware has
been downloaded, but this is before the core is actually started running,
so really it currently indicates that the core has been booted and is
perhaps running.

This patch clearly separates out the concepts of booted (firmware is
downloaded) and running (code is executing on the DSP) within the wm_adsp
driver.

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