mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-14 04:55:41 +01:00
topology: do not pass pre_processor_defs to pre_process_plugins()
This parameter is not used. Link: https://github.com/alsa-project/alsa-utils/pull/129 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
f9e6010d5e
commit
42010cfeba
1 changed files with 4 additions and 5 deletions
|
@ -35,8 +35,7 @@
|
||||||
|
|
||||||
#define SND_TOPOLOGY_MAX_PLUGINS 32
|
#define SND_TOPOLOGY_MAX_PLUGINS 32
|
||||||
|
|
||||||
static int get_plugin_string(struct tplg_pre_processor *tplg_pp, const char *pre_processor_defs,
|
static int get_plugin_string(struct tplg_pre_processor *tplg_pp, char **plugin_string)
|
||||||
char **plugin_string)
|
|
||||||
{
|
{
|
||||||
const char *lib_names_t = NULL;
|
const char *lib_names_t = NULL;
|
||||||
snd_config_t *defines;
|
snd_config_t *defines;
|
||||||
|
@ -112,7 +111,7 @@ err:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pre_process_plugins(struct tplg_pre_processor *tplg_pp, const char *pre_processor_defs)
|
static int pre_process_plugins(struct tplg_pre_processor *tplg_pp)
|
||||||
{
|
{
|
||||||
char *plugins[SND_TOPOLOGY_MAX_PLUGINS];
|
char *plugins[SND_TOPOLOGY_MAX_PLUGINS];
|
||||||
char *plugin_string;
|
char *plugin_string;
|
||||||
|
@ -121,7 +120,7 @@ static int pre_process_plugins(struct tplg_pre_processor *tplg_pp, const char *p
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* parse plugin names */
|
/* parse plugin names */
|
||||||
ret = get_plugin_string(tplg_pp, pre_processor_defs, &plugin_string);
|
ret = get_plugin_string(tplg_pp, &plugin_string);
|
||||||
|
|
||||||
/* no plugins defined, so just return */
|
/* no plugins defined, so just return */
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
@ -688,7 +687,7 @@ int pre_process(struct tplg_pre_processor *tplg_pp, char *config, size_t config_
|
||||||
}
|
}
|
||||||
|
|
||||||
/* process topology plugins */
|
/* process topology plugins */
|
||||||
err = pre_process_plugins(tplg_pp, pre_processor_defs);
|
err = pre_process_plugins(tplg_pp);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
fprintf(stderr, "Unable to run pre-process plugins\n");
|
fprintf(stderr, "Unable to run pre-process plugins\n");
|
||||||
goto err;
|
goto err;
|
||||||
|
|
Loading…
Reference in a new issue