]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit69e4be2ddb1686890109955fdef974aff523d924
tree9c9f95311f1e3bf6cc88b86a8049f476839c01c3
parent22b5b066f5332bf8b59fd7c15c3fc58d4e25aaaf
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