Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions sound/soc/sof/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,27 @@ int snd_sof_dbg_init(struct snd_sof_dev *sdev)

debugfs_create_str("fw_path", 0444, fw_profile,
(char **)&plat_data->fw_filename_prefix);
debugfs_create_str("fw_lib_path", 0444, fw_profile,
(char **)&plat_data->fw_lib_prefix);
/* library path is not valid for IPC3 */
if (plat_data->ipc_type != SOF_IPC_TYPE_3) {
/*
* fw_lib_prefix can be NULL if the vendor/platform does not
* support loadable libraries
*/
if (plat_data->fw_lib_prefix) {
debugfs_create_str("fw_lib_path", 0444, fw_profile,
(char **)&plat_data->fw_lib_prefix);
} else {
static char *fw_lib_path;

fw_lib_path = devm_kasprintf(sdev->dev, GFP_KERNEL,
"Not supported");
if (!fw_lib_path)
return -ENOMEM;

debugfs_create_str("fw_lib_path", 0444, fw_profile,
(char **)&fw_lib_path);
}
}
debugfs_create_str("tplg_path", 0444, fw_profile,
(char **)&plat_data->tplg_filename_prefix);
debugfs_create_str("fw_name", 0444, fw_profile,
Expand Down