ASoC: SOF: sof-acpi-dev: Rely on core to create the file paths
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 29 Nov 2023 12:53:22 +0000 (14:53 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 29 Nov 2023 13:25:10 +0000 (13:25 +0000)
The core is now using the information from ipc_file_profile_base to create
the paths for the loadable files, no need to set it in here anymore.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20231129125327.23708-9-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/sof-acpi-dev.c

index 87c0c2edc4c9d450675d3b29039acb581417bdb2..2977f0a63fba5d02b0b85c23ba9c87be2ca78ccb 100644 (file)
@@ -74,18 +74,6 @@ int sof_acpi_probe(struct platform_device *pdev, const struct sof_dev_desc *desc
 
        sof_pdata->desc = desc;
        sof_pdata->dev = &pdev->dev;
-       sof_pdata->fw_filename = desc->default_fw_filename[SOF_IPC_TYPE_3];
-
-       /* alternate fw and tplg filenames ? */
-       if (fw_path)
-               sof_pdata->fw_filename_prefix = fw_path;
-       else
-               sof_pdata->fw_filename_prefix = desc->default_fw_path[SOF_IPC_TYPE_3];
-
-       if (tplg_path)
-               sof_pdata->tplg_filename_prefix = tplg_path;
-       else
-               sof_pdata->tplg_filename_prefix = desc->default_tplg_path[SOF_IPC_TYPE_3];
 
        sof_pdata->ipc_file_profile_base.ipc_type = desc->ipc_default;
        sof_pdata->ipc_file_profile_base.fw_path = fw_path;