Skip to content

Commit cd38ccb

Browse files
rfvirgilbroonie
authored andcommitted
ASoC: cs35l56: cs35l56_component_remove() must clean up wm_adsp
cs35l56_component_remove() must call wm_adsp_power_down() and wm_adsp2_component_remove(). Signed-off-by: Richard Fitzgerald <[email protected]> Fixes: e496112 ("ASoC: cs35l56: Add driver for Cirrus Logic CS35L56") Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ae861c4 commit cd38ccb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sound/soc/codecs/cs35l56.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,11 @@ static void cs35l56_component_remove(struct snd_soc_component *component)
810810

811811
cancel_work_sync(&cs35l56->dsp_work);
812812

813+
if (cs35l56->dsp.cs_dsp.booted)
814+
wm_adsp_power_down(&cs35l56->dsp);
815+
816+
wm_adsp2_component_remove(&cs35l56->dsp, component);
817+
813818
cs35l56->component = NULL;
814819
}
815820

0 commit comments

Comments
 (0)