Re: [PATCH 07/11] ASoC: SOF: core: Skip firmware test for undefined fw_name

From: Péter Ujfalusi
Date: Thu Dec 14 2023 - 06:51:32 EST




On 14/12/2023 12:48, Péter Ujfalusi wrote:
> @@ -265,7 +276,9 @@ static void sof_print_profile_info(struct snd_sof_dev *sdev,
> "Using fallback IPC type %d (requested type was %d)\n",
> profile->ipc_type, ipc_type);
>
> - dev_info(dev, "Firmware paths/files for ipc type %d:\n", profile->ipc_type);
> + /* The firmware path only valid when generic loader is used */
> + if (sof_platform_uses_generic_loader(sdev))
> + dev_info(dev, "Firmware paths/files for ipc type %d:\n", profile->ipc_type);
>

This is the correct section in here, sorry:

- dev_info(dev, " Firmware file: %s/%s\n", profile->fw_path, profile->fw_name);
+ /* The firmware path only valid when generic loader is used */
+ if (sof_platform_uses_generic_loader(sdev))
+ dev_info(dev, " Firmware file: %s/%s\n", profile->fw_path, profile->fw_name);
+
if (profile->fw_lib_path)


--
Péter