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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:26:11 +0000 (10:26 +0200)
commit49c3226c06574bd57d6c4a9aec6641d28fda5b52
tree242107983d798592acac7ba2cee3c1e83f6ba8d8
parentd86f4ea83626d4714c946ffef643a54519987934
ASoC: wm_adsp: Return an error on write to a disabled volatile control

[ Upstream commit 67430a39ca7a6af28aade5acb92d43ee257c1014 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/wm_adsp.c