OSDN Git Service

ASoC: wm_adsp: Return an error on write to a disabled volatile control
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 6 Mar 2017 16:54:33 +0000 (16:54 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 7 Mar 2017 12:07:58 +0000 (13:07 +0100)
commit67430a39ca7a6af28aade5acb92d43ee257c1014
treef01f19d431c4ecb390f5d10c33c01a722b422caf
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
ASoC: wm_adsp: Return an error on write to a disabled volatile control

Volatile controls should only be accessed when the firmware is active,
currently however writes to these controls will succeed, but the data
will be lost, if the firmware is powered down. Update this behaviour such
that an error is returned the same as it is for reads.

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