Skip to content

Commit e48a906

Browse files
bardliaobroonie
authored andcommitted
ASoC: SOF: add disable_function_topology flag
SOF driver will load required function topologies dynamically. However, we prefer using the monolithic topology. Add a flag to allow user not using the function topologies. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://patch.msgid.link/20250506113311.45487-2-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent a71b261 commit e48a906

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

include/sound/sof.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ struct snd_sof_pdata {
106106
const char *fw_filename;
107107
const char *tplg_filename_prefix;
108108
const char *tplg_filename;
109+
bool disable_function_topology;
109110

110111
/* loadable external libraries available under this directory */
111112
const char *fw_lib_prefix;

sound/soc/sof/topology.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2481,7 +2481,8 @@ int snd_sof_load_topology(struct snd_soc_component *scomp, const char *file)
24812481
if (!tplg_files)
24822482
return -ENOMEM;
24832483

2484-
if (sof_pdata->machine && sof_pdata->machine->get_function_tplg_files) {
2484+
if (!sof_pdata->disable_function_topology && sof_pdata->machine &&
2485+
sof_pdata->machine->get_function_tplg_files) {
24852486
tplg_cnt = sof_pdata->machine->get_function_tplg_files(scomp->card,
24862487
sof_pdata->machine,
24872488
tplg_filename_prefix,

0 commit comments

Comments
 (0)