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 reloading firmware
When firmware is reloaded after a system resume cs_dsp_power_down() should be called before calling cs_dsp_power_up(). The fw_patched flag should also be cleared and only set again if the firmware download succeeded. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://lore.kernel.org/r/20230731165726.7940-4-rf@opensource.cirrus.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
c36570970a
commit
15c378d66f
1 changed files with 6 additions and 0 deletions
|
@ -527,6 +527,12 @@ static int cs35l56_hda_fw_load(struct cs35l56_hda *cs35l56)
|
|||
char *wmfw_filename = NULL;
|
||||
int ret = 0;
|
||||
|
||||
/* Prepare for a new DSP power-up */
|
||||
if (cs35l56->base.fw_patched)
|
||||
cs_dsp_power_down(&cs35l56->cs_dsp);
|
||||
|
||||
cs35l56->base.fw_patched = false;
|
||||
|
||||
cs35l56_hda_request_firmware_files(cs35l56, &wmfw_firmware, &wmfw_filename,
|
||||
&coeff_firmware, &coeff_filename);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue