Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bard Liao and committed by
Mark Brown
e48a906a a71b261c

+3 -1
+1
include/sound/sof.h
··· 106 106 const char *fw_filename; 107 107 const char *tplg_filename_prefix; 108 108 const char *tplg_filename; 109 + bool disable_function_topology; 109 110 110 111 /* loadable external libraries available under this directory */ 111 112 const char *fw_lib_prefix;
+2 -1
sound/soc/sof/topology.c
··· 2481 2481 if (!tplg_files) 2482 2482 return -ENOMEM; 2483 2483 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) { 2485 2486 tplg_cnt = sof_pdata->machine->get_function_tplg_files(scomp->card, 2486 2487 sof_pdata->machine, 2487 2488 tplg_filename_prefix,