Home
last modified time | relevance | path

Searched refs:tplg_pp (Results 1 – 8 of 8) sorted by relevance

/third_party/alsa-utils/topology/
Dpre-processor.h35 typedef int (*build_func)(struct tplg_pre_processor *tplg_pp, snd_config_t *obj,
38 typedef int (*update_auto_attr_func)(struct tplg_pre_processor *tplg_pp,
54 void tplg_pp_config_debug(struct tplg_pre_processor *tplg_pp, snd_config_t *cfg);
57 int tplg_build_object_from_template(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg,
60 int tplg_build_tlv_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg,
62 int tplg_build_scale_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg,
64 int tplg_build_ops_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg,
66 int tplg_build_channel_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg,
68 int tplg_build_mixer_control(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg,
70 int tplg_build_bytes_control(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg,
[all …]
Dpre-processor.c114 void tplg_pp_config_debug(struct tplg_pre_processor *tplg_pp, snd_config_t *cfg) in tplg_pp_config_debug() argument
116 snd_config_save(cfg, tplg_pp->dbg_output); in tplg_pp_config_debug()
120 void tplg_pp_config_debug(struct tplg_pre_processor *tplg_pp, snd_config_t *cfg){} in tplg_pp_config_debug() argument
123 static int pre_process_config(struct tplg_pre_processor *tplg_pp, snd_config_t *cfg) in pre_process_config() argument
161 err = tplg_pre_process_objects(tplg_pp, n2, NULL); in pre_process_config()
170 void free_pre_preprocessor(struct tplg_pre_processor *tplg_pp) in free_pre_preprocessor() argument
172 snd_output_close(tplg_pp->output); in free_pre_preprocessor()
173 snd_output_close(tplg_pp->dbg_output); in free_pre_preprocessor()
174 snd_config_delete(tplg_pp->output_cfg); in free_pre_preprocessor()
175 free(tplg_pp); in free_pre_preprocessor()
[all …]
Dpre-process-object.c31 int tplg_build_vendor_token_object(struct tplg_pre_processor *tplg_pp, in tplg_build_vendor_token_object() argument
39 ret = tplg_build_object_from_template(tplg_pp, obj_cfg, &vtop, NULL, false); in tplg_build_vendor_token_object()
48 obj = tplg_object_get_instance_config(tplg_pp, obj_cfg); in tplg_build_vendor_token_object()
78 int tplg_parent_update(struct tplg_pre_processor *tplg_pp, snd_config_t *parent, in tplg_parent_update() argument
91 child = tplg_object_get_instance_config(tplg_pp, parent); in tplg_parent_update()
107 top = tplg_object_get_section(tplg_pp, parent); in tplg_parent_update()
179 int tplg_build_data_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg, in tplg_build_data_object() argument
186 ret = tplg_build_object_from_template(tplg_pp, obj_cfg, &dtop, NULL, false); in tplg_build_data_object()
194 return tplg_parent_update(tplg_pp, parent, "data", name); in tplg_build_data_object()
197 static int tplg_create_config_template(struct tplg_pre_processor *tplg_pp, in tplg_create_config_template() argument
[all …]
Dpre-process-dapm.c26 int tplg_build_base_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg, in tplg_build_base_object() argument
33 top = tplg_object_get_section(tplg_pp, parent); in tplg_build_base_object()
37 parent_obj = tplg_object_get_instance_config(tplg_pp, parent); in tplg_build_base_object()
40 parent_name = tplg_object_get_name(tplg_pp, parent_obj); in tplg_build_base_object()
52 return tplg_build_object_from_template(tplg_pp, obj_cfg, &cfg, dest, skip_name); in tplg_build_base_object()
55 int tplg_build_scale_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg, in tplg_build_scale_object() argument
58 return tplg_build_base_object(tplg_pp, obj_cfg, parent, true); in tplg_build_scale_object()
61 int tplg_build_ops_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg, in tplg_build_ops_object() argument
64 return tplg_build_base_object(tplg_pp, obj_cfg, parent, false); in tplg_build_ops_object()
67 int tplg_build_channel_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg, in tplg_build_channel_object() argument
[all …]
Dpre-process-dai.c26 int tplg_build_hw_cfg_object(struct tplg_pre_processor *tplg_pp, in tplg_build_hw_cfg_object() argument
33 obj = tplg_object_get_instance_config(tplg_pp, obj_cfg); in tplg_build_hw_cfg_object()
35 name = tplg_object_get_name(tplg_pp, obj); in tplg_build_hw_cfg_object()
39 ret = tplg_build_object_from_template(tplg_pp, obj_cfg, &hw_cfg, NULL, false); in tplg_build_hw_cfg_object()
43 return tplg_parent_update(tplg_pp, parent, "hw_configs", name); in tplg_build_hw_cfg_object()
46 int tplg_build_fe_dai_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg, in tplg_build_fe_dai_object() argument
49 return tplg_build_base_object(tplg_pp, obj_cfg, parent, false); in tplg_build_fe_dai_object()
52 static int tplg_update_pcm_object(struct tplg_pre_processor *tplg_pp, in tplg_update_pcm_object() argument
60 obj = tplg_object_get_instance_config(tplg_pp, obj_cfg); in tplg_update_pcm_object()
61 item_name = tplg_object_get_name(tplg_pp, obj); in tplg_update_pcm_object()
[all …]
Dtopology.c252 struct tplg_pre_processor *tplg_pp; in pre_process_conf() local
262 err = init_pre_processor(&tplg_pp, SND_OUTPUT_STDIO, output_file); in pre_process_conf()
271 err = pre_process(tplg_pp, config, config_size, pre_processor_defs, inc_path); in pre_process_conf()
275 free_pre_preprocessor(tplg_pp); in pre_process_conf()
283 struct tplg_pre_processor *tplg_pp = NULL; in compile() local
300 init_pre_processor(&tplg_pp, SND_OUTPUT_BUFFER, NULL); in compile()
304 err = pre_process(tplg_pp, config, config_size, pre_processor_defs, inc_path); in compile()
307 free_pre_preprocessor(tplg_pp); in compile()
313 size = snd_output_buffer_string(tplg_pp->output, &pconfig); in compile()
317 free_pre_preprocessor(tplg_pp); in compile()
Dpre-process-class.c92 snd_config_t *tplg_class_lookup(struct tplg_pre_processor *tplg_pp, snd_config_t *cfg) in tplg_class_lookup() argument
120 ret = snd_config_search(tplg_pp->input_cfg, class_config_id, &class_cfg); in tplg_class_lookup()
129 snd_config_t *tplg_class_find_attribute_by_name(struct tplg_pre_processor *tplg_pp, in tplg_class_find_attribute_by_name() argument
154 const char *tplg_class_get_unique_attribute_name(struct tplg_pre_processor *tplg_pp, in tplg_class_get_unique_attribute_name() argument
179 snd_config_type_t tplg_class_get_attribute_type(struct tplg_pre_processor *tplg_pp, in tplg_class_get_attribute_type() argument
210 const char *tplg_class_get_attribute_token_ref(struct tplg_pre_processor *tplg_pp, in tplg_class_get_attribute_token_ref() argument
237 long tplg_class_attribute_valid_tuple_value(struct tplg_pre_processor *tplg_pp, in tplg_class_attribute_valid_tuple_value() argument
Dtopology.h30 int pre_process(struct tplg_pre_processor *tplg_pp, char *config, size_t config_size,
32 int init_pre_processor(struct tplg_pre_processor **tplg_pp, snd_output_type_t type,
34 void free_pre_preprocessor(struct tplg_pre_processor *tplg_pp);