mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
ALSA: hda/cs35l56: Fail if .bin not found and firmware not patched
A tuning patch is always needed to enable the ASP audio port. If the BIOS did not patch the firmware, then it is mandatory to have a .bin file. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://lore.kernel.org/r/20230731165726.7940-9-rf@opensource.cirrus.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
2f860dd895
commit
3106797d2b
@ -555,6 +555,16 @@ static int cs35l56_hda_fw_load(struct cs35l56_hda *cs35l56)
|
|||||||
&coeff_firmware, &coeff_filename);
|
&coeff_firmware, &coeff_filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If the BIOS didn't patch the firmware a bin file is mandatory to
|
||||||
|
* enable the ASP·
|
||||||
|
*/
|
||||||
|
if (!coeff_firmware && firmware_missing) {
|
||||||
|
dev_err(cs35l56->base.dev, ".bin file required but not found\n");
|
||||||
|
ret = -ENOENT;
|
||||||
|
goto err_fw_release;
|
||||||
|
}
|
||||||
|
|
||||||
mutex_lock(&cs35l56->base.irq_lock);
|
mutex_lock(&cs35l56->base.irq_lock);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -615,7 +625,7 @@ err_powered_up:
|
|||||||
cs_dsp_power_down(&cs35l56->cs_dsp);
|
cs_dsp_power_down(&cs35l56->cs_dsp);
|
||||||
err:
|
err:
|
||||||
mutex_unlock(&cs35l56->base.irq_lock);
|
mutex_unlock(&cs35l56->base.irq_lock);
|
||||||
|
err_fw_release:
|
||||||
cs35l56_hda_release_firmware_files(wmfw_firmware, wmfw_filename,
|
cs35l56_hda_release_firmware_files(wmfw_firmware, wmfw_filename,
|
||||||
coeff_firmware, coeff_filename);
|
coeff_firmware, coeff_filename);
|
||||||
err_pm_put:
|
err_pm_put:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user