mirror of
https://github.com/armbian/build.git
synced 2025-08-14 15:16:58 +02:00
45 lines
1.6 KiB
Diff
45 lines
1.6 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Jianhua Lu <lujianhua000@gmail.com>
|
|
Date: Wed, 29 Mar 2023 19:38:33 +0800
|
|
Subject: Asoc: wm_adsp: Add prefix support
|
|
|
|
---
|
|
sound/soc/codecs/wm_adsp.c | 14 ++++++++++
|
|
1 file changed, 14 insertions(+)
|
|
|
|
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
|
|
index d1b9238d391e..60480d365616 100644
|
|
--- a/sound/soc/codecs/wm_adsp.c
|
|
+++ b/sound/soc/codecs/wm_adsp.c
|
|
@@ -750,6 +750,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,
|
|
dsp->fwf_name, 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,
|
|
+ dsp->fwf_name, wm_adsp_fw[dsp->fw].file, asoc_component_prefix,
|
|
+ filetype);
|
|
else
|
|
*filename = kasprintf(GFP_KERNEL, "%s%s-%s-%s.%s", dir, dsp->part, dsp->fwf_name,
|
|
wm_adsp_fw[dsp->fw].file, filetype);
|
|
@@ -821,6 +825,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;
|
|
+ }
|
|
}
|
|
|
|
if (!wm_adsp_request_firmware_file(dsp, wmfw_firmware, wmfw_filename,
|
|
--
|
|
Armbian
|
|
|