mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
ALSA: hda/cs35l56: Call cs_dsp_power_down() before calling cs_dsp_remove()
In cs35l56_hda_unbind() cs_dsp_power_down() must be called to cleanup before calling cs_dsp_remove cs_dsp_remove(). Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://lore.kernel.org/r/20230731165726.7940-6-rf@opensource.cirrus.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
e5bac77b67
commit
fb78d73dde
1 changed files with 3 additions and 0 deletions
|
@ -649,6 +649,9 @@ static void cs35l56_hda_unbind(struct device *dev, struct device *master, void *
|
|||
debugfs_remove_recursive(cs35l56->debugfs_root);
|
||||
#endif
|
||||
|
||||
if (cs35l56->base.fw_patched)
|
||||
cs_dsp_power_down(&cs35l56->cs_dsp);
|
||||
|
||||
cs_dsp_remove(&cs35l56->cs_dsp);
|
||||
|
||||
if (comps[cs35l56->index].dev == dev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue