projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae861c4
)
ASoC: cs35l56: cs35l56_component_remove() must clean up wm_adsp
author
Richard Fitzgerald
<rf@opensource.cirrus.com>
Mon, 29 Jan 2024 16:27:23 +0000
(16:27 +0000)
committer
Mark Brown
<broonie@kernel.org>
Thu, 1 Feb 2024 12:57:17 +0000
(12:57 +0000)
cs35l56_component_remove() must call wm_adsp_power_down() and
wm_adsp2_component_remove().
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes:
e49611252900
("ASoC: cs35l56: Add driver for Cirrus Logic CS35L56")
Link:
https://msgid.link/r/20240129162737.497-5-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/cs35l56.c
b/sound/soc/codecs/cs35l56.c
index
09944db
..
491da77
100644
(file)
--- a/
sound/soc/codecs/cs35l56.c
+++ b/
sound/soc/codecs/cs35l56.c
@@
-810,6
+810,11
@@
static void cs35l56_component_remove(struct snd_soc_component *component)
cancel_work_sync(&cs35l56->dsp_work);
+ if (cs35l56->dsp.cs_dsp.booted)
+ wm_adsp_power_down(&cs35l56->dsp);
+
+ wm_adsp2_component_remove(&cs35l56->dsp, component);
+
cs35l56->component = NULL;
}