mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
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> 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-4-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
92b5f92d11
commit
7b400c9ab8
|
|
@ -19,6 +19,10 @@
|
|||
#include "sof-audio.h"
|
||||
#include "ops.h"
|
||||
|
||||
static bool disable_function_topology;
|
||||
module_param(disable_function_topology, bool, 0444);
|
||||
MODULE_PARM_DESC(disable_function_topology, "Disable function topology loading");
|
||||
|
||||
#define COMP_ID_UNASSIGNED 0xffffffff
|
||||
/*
|
||||
* Constants used in the computation of linear volume gain
|
||||
|
|
@ -2481,8 +2485,8 @@ int snd_sof_load_topology(struct snd_soc_component *scomp, const char *file)
|
|||
if (!tplg_files)
|
||||
return -ENOMEM;
|
||||
|
||||
if (!sof_pdata->disable_function_topology && sof_pdata->machine &&
|
||||
sof_pdata->machine->get_function_tplg_files) {
|
||||
if (!sof_pdata->disable_function_topology && !disable_function_topology &&
|
||||
sof_pdata->machine && sof_pdata->machine->get_function_tplg_files) {
|
||||
tplg_cnt = sof_pdata->machine->get_function_tplg_files(scomp->card,
|
||||
sof_pdata->machine,
|
||||
tplg_filename_prefix,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user