Skip to content

Commit 2a4add7

Browse files
committed
ASoC: SOF: add disable_function_topology module parameter
User can disable the loading function topology feature. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 118cee4 commit 2a4add7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sound/soc/sof/core.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ static int override_ipc_type = -1;
4444
module_param_named(ipc_type, override_ipc_type, int, 0444);
4545
MODULE_PARM_DESC(ipc_type, "Force SOF IPC type. 0 - IPC3, 1 - IPC4");
4646

47+
static bool disable_function_topology = false;
48+
module_param(disable_function_topology, bool, 0444);
49+
MODULE_PARM_DESC(disable_function_topology, "Disable function topology loading");
50+
4751
/* see SOF_DBG_ flags */
4852
static int sof_core_debug = IS_ENABLED(CONFIG_SND_SOC_SOF_DEBUG_ENABLE_FIRMWARE_TRACE);
4953
module_param_named(sof_debug, sof_core_debug, int, 0444);
@@ -642,6 +646,8 @@ sof_apply_profile_override(struct sof_loadable_file_profile *path_override,
642646
/* User requested a specific topology file and expect it to be loaded */
643647
plat_data->disable_function_topology = true;
644648
}
649+
if (disable_function_topology)
650+
plat_data->disable_function_topology = true;
645651
}
646652

647653
int snd_sof_device_probe(struct device *dev, struct snd_sof_pdata *plat_data)

0 commit comments

Comments
 (0)