mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 11:02:31 -04:00
ASoC: SOF: add path indirection to each IPC type
With the addition of the IPCv4, we need the ability to select different paths for firmware and topologies. First add an indirection. Follow-up patches will add mechanisms to select a default IPC or override it. No functionality change in this patch. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Link: https://lore.kernel.org/r/20220414184817.362215-3-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
15527fee76
commit
a375791512
@@ -193,7 +193,7 @@ int sof_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
|
||||
} else if (dmi_check_system(community_key_platforms)) {
|
||||
sof_pdata->fw_filename_prefix =
|
||||
devm_kasprintf(dev, GFP_KERNEL, "%s/%s",
|
||||
sof_pdata->desc->default_fw_path,
|
||||
sof_pdata->desc->default_fw_path[SOF_IPC],
|
||||
"community");
|
||||
|
||||
dev_dbg(dev,
|
||||
@@ -201,14 +201,14 @@ int sof_pci_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
|
||||
sof_pdata->fw_filename_prefix);
|
||||
} else {
|
||||
sof_pdata->fw_filename_prefix =
|
||||
sof_pdata->desc->default_fw_path;
|
||||
sof_pdata->desc->default_fw_path[SOF_IPC];
|
||||
}
|
||||
|
||||
if (tplg_path)
|
||||
sof_pdata->tplg_filename_prefix = tplg_path;
|
||||
else
|
||||
sof_pdata->tplg_filename_prefix =
|
||||
sof_pdata->desc->default_tplg_path;
|
||||
sof_pdata->desc->default_tplg_path[SOF_IPC];
|
||||
|
||||
dmi_check_system(sof_tplg_table);
|
||||
if (sof_override_tplg_name)
|
||||
|
||||
Reference in New Issue
Block a user