ASoC: wm_adsp: Only write shutdown controls for active firmwares
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 21 Nov 2016 18:00:02 +0000 (18:00 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 21 Nov 2016 18:20:53 +0000 (18:20 +0000)
commit87aa63746260e3e9db2fe6b6d8e97b55bdb63a2b
treef20a873a07c3239d7ab62afb91c3df102b539e74
parentb396ebca736f94a1a18bdc9a518ad0ca58fbd842
ASoC: wm_adsp: Only write shutdown controls for active firmwares

The control list may contain shutdown controls for firmwares that are
not currently active, attempting to write this will at best fail. To
avoid this issue we skip any control that is not active.

Fixes: commit f4f0c4c60c39 ("ASoC: wm_adsp: Signal firmware shutdown
                             through event control")
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c