ASoC: wm_adsp: Correct DSP pointer for preloader control
authorAjit Pandey <ajit.pandey@cirrus.com>
Tue, 7 Aug 2018 17:30:42 +0000 (18:30 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 8 Aug 2018 09:53:56 +0000 (10:53 +0100)
commitb1470d4ce77c2d60661c7d5325d4fb8063e15ff8
treed33e294414202e0b3e46df2bf529b57ef4343198
parentc9c9780d8fa526a124933134a7e4041fa09662f6
ASoC: wm_adsp: Correct DSP pointer for preloader control

The offset of the DSP core needs to be taken into account for the DSP
preloader control get and put. Currently the dsp->preloaded variable
will only ever be read/updated on the first DSP, whilst this doesn't
affect the operation of the control the readback will be incorrect.

Signed-off-by: Ajit Pandey <ajit.pandey@cirrus.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
sound/soc/codecs/wm_adsp.c