Skip to content
Snippets Groups Projects
Commit 8dd31bc8 authored by Jianhua Lu's avatar Jianhua Lu
Browse files

Asoc: wm_adsp: Add prefix support

parent fa1f3489
No related branches found
No related tags found
No related merge requests found
......@@ -751,6 +751,10 @@ static int wm_adsp_request_firmware_file(struct wm_adsp *dsp,
*filename = kasprintf(GFP_KERNEL, "%s%s-%s-%s-%s.%s", dir, dsp->part,
fwf, wm_adsp_fw[dsp->fw].file, system_name,
filetype);
else if (asoc_component_prefix)
*filename = kasprintf(GFP_KERNEL, "%s%s-%s-%s-%s.%s", dir, dsp->part,
fwf, wm_adsp_fw[dsp->fw].file, asoc_component_prefix,
filetype);
else
*filename = kasprintf(GFP_KERNEL, "%s%s-%s-%s.%s", dir, dsp->part, fwf,
wm_adsp_fw[dsp->fw].file, filetype);
......@@ -822,6 +826,16 @@ static int wm_adsp_request_firmware_files(struct wm_adsp *dsp,
NULL, "bin");
return 0;
}
} else if (asoc_component_prefix) {
if (!wm_adsp_request_firmware_file(dsp, wmfw_firmware, wmfw_filename,
cirrus_dir, NULL,
NULL, "wmfw")) {
adsp_dbg(dsp, "Found '%s'\n", *wmfw_filename);
wm_adsp_request_firmware_file(dsp, coeff_firmware, coeff_filename,
cirrus_dir, NULL,
asoc_component_prefix, "bin");
return 0;
}
}
/* Check system-specific bin without wmfw before falling back to generic */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment