Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: SOF: sof-of-dev: add parameter to override tplg/fw_filename

Add support to override topology and firmware filename,
using module parameters. This is helpful for development
and also for testing various scenarios.

Signed-off-by: Anne Onciulescu <anne.onciulescu@gmail.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Chao Song <chao.song@linux.intel.com>
Reviewed-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://patch.msgid.link/20241017110313.1423258-1-daniel.baluta@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Anne Onciulescu and committed by
Mark Brown
9cb86a9c d3170359

+10
+10
sound/soc/sof/sof-of-dev.c
··· 18 18 module_param(fw_path, charp, 0444); 19 19 MODULE_PARM_DESC(fw_path, "alternate path for SOF firmware."); 20 20 21 + static char *fw_filename; 22 + module_param(fw_filename, charp, 0444); 23 + MODULE_PARM_DESC(fw_filename, "alternate filename for SOF firmware."); 24 + 21 25 static char *tplg_path; 22 26 module_param(tplg_path, charp, 0444); 23 27 MODULE_PARM_DESC(tplg_path, "alternate path for SOF topology."); 28 + 29 + static char *tplg_filename; 30 + module_param(tplg_filename, charp, 0444); 31 + MODULE_PARM_DESC(tplg_filename, "alternate filename for SOF topology."); 24 32 25 33 const struct dev_pm_ops sof_of_pm = { 26 34 .prepare = snd_sof_prepare, ··· 76 68 sof_pdata->ipc_file_profile_base.ipc_type = desc->ipc_default; 77 69 sof_pdata->ipc_file_profile_base.fw_path = fw_path; 78 70 sof_pdata->ipc_file_profile_base.tplg_path = tplg_path; 71 + sof_pdata->ipc_file_profile_base.fw_name = fw_filename; 72 + sof_pdata->ipc_file_profile_base.tplg_name = tplg_filename; 79 73 80 74 /* set callback to be called on successful device probe to enable runtime_pm */ 81 75 sof_pdata->sof_probe_complete = sof_of_probe_complete;