Skip to content

Commit

Permalink
ASoC: cs35l56: cs35l56_component_remove() must clean up wm_adsp
Browse files Browse the repository at this point in the history
[ Upstream commit cd38ccb ]

cs35l56_component_remove() must call wm_adsp_power_down() and
wm_adsp2_component_remove().

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: e496112 ("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>
Stable-dep-of: eba2eb2 ("ASoC: soc-card: Fix missing locking in snd_soc_card_get_kcontrol()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
rfvirgil authored and gregkh committed Mar 6, 2024
1 parent 121bb2e commit 1d5f1ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sound/soc/codecs/cs35l56.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1d5f1ee

Please sign in to comment.