• Home
  • Raw
  • Download

Lines Matching refs:tplg_pp

31 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
374 static bool tplg_object_is_attribute_valid(struct tplg_pre_processor *tplg_pp, in tplg_object_is_attribute_valid() argument
438 const char *tplg_object_get_name(struct tplg_pre_processor *tplg_pp, in tplg_object_get_name() argument
457 static snd_config_t *tplg_object_lookup_in_config(struct tplg_pre_processor *tplg_pp, in tplg_object_lookup_in_config() argument
474 static int tplg_pp_add_object_tuple_section(struct tplg_pre_processor *tplg_pp, in tplg_pp_add_object_tuple_section() argument
487 ret = snd_config_search(tplg_pp->output_cfg, "SectionVendorTuples", &top); in tplg_pp_add_object_tuple_section()
490 SND_CONFIG_TYPE_COMPOUND, tplg_pp->output_cfg); in tplg_pp_add_object_tuple_section()
582 tuple_value = tplg_class_attribute_valid_tuple_value(tplg_pp, class_cfg, attr); in tplg_pp_add_object_tuple_section()
608 static int tplg_pp_add_object_data_section(struct tplg_pre_processor *tplg_pp, in tplg_pp_add_object_data_section() argument
616 ret = snd_config_search(tplg_pp->output_cfg, "SectionData", &top); in tplg_pp_add_object_data_section()
619 tplg_pp->output_cfg); in tplg_pp_add_object_data_section()
668 int tplg_add_object_data(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg, in tplg_add_object_data() argument
679 obj = tplg_object_get_instance_config(tplg_pp, obj_cfg); in tplg_add_object_data()
681 class_cfg = tplg_class_lookup(tplg_pp, obj_cfg); in tplg_add_object_data()
704 token = tplg_class_get_attribute_token_ref(tplg_pp, class_cfg, id); in tplg_add_object_data()
712 ret = tplg_pp_add_object_data_section(tplg_pp, data_cfg, data_cfg_name); in tplg_add_object_data()
719 ret = tplg_pp_add_object_tuple_section(tplg_pp, class_cfg, n, data_cfg_name, in tplg_add_object_data()
774 static const struct build_function_map *tplg_object_get_map(struct tplg_pre_processor *tplg_pp,
778 static int tplg_build_parent_data(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg, in tplg_build_parent_data() argument
790 obj = tplg_object_get_instance_config(tplg_pp, obj_cfg); in tplg_build_parent_data()
791 parent_obj = tplg_object_get_instance_config(tplg_pp, parent); in tplg_build_parent_data()
800 parent_id = tplg_object_get_name(tplg_pp, parent_obj); in tplg_build_parent_data()
809 map = tplg_object_get_map(tplg_pp, parent); in tplg_build_parent_data()
816 ret = snd_config_search(tplg_pp->output_cfg, map->section_name, &section_cfg); in tplg_build_parent_data()
828 return tplg_add_object_data(tplg_pp, obj_cfg, top, id); in tplg_build_parent_data()
835 int tplg_build_object_from_template(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg, in tplg_build_object_from_template() argument
845 map = tplg_object_get_map(tplg_pp, obj_cfg); in tplg_build_object_from_template()
851 obj = tplg_object_get_instance_config(tplg_pp, obj_cfg); in tplg_build_object_from_template()
855 top_config = tplg_pp->output_cfg; in tplg_build_object_from_template()
868 object_name = tplg_object_get_name(tplg_pp, obj); in tplg_build_object_from_template()
900 ret = tplg_create_config_template(tplg_pp, &template, map->template_items); in tplg_build_object_from_template()
915 static int tplg_build_generic_object(struct tplg_pre_processor *tplg_pp, snd_config_t *obj_cfg, in tplg_build_generic_object() argument
922 ret = tplg_build_object_from_template(tplg_pp, obj_cfg, &wtop, NULL, false); in tplg_build_generic_object()
930 ret = tplg_add_object_data(tplg_pp, obj_cfg, wtop, NULL); in tplg_build_generic_object()
1030 static const struct build_function_map *tplg_object_get_map(struct tplg_pre_processor *tplg_pp, in tplg_object_get_map() argument
1067 snd_config_t *tplg_object_get_section(struct tplg_pre_processor *tplg_pp, snd_config_t *class) in tplg_object_get_section() argument
1073 map = tplg_object_get_map(tplg_pp, class); in tplg_object_get_section()
1077 ret = snd_config_search(tplg_pp->output_cfg, map->section_name, &cfg); in tplg_object_get_section()
1085 static int tplg_object_copy_and_add_param(struct tplg_pre_processor *tplg_pp, in tplg_object_copy_and_add_param() argument
1129 static int tplg_object_update(struct tplg_pre_processor *tplg_pp, snd_config_t *obj, in tplg_object_update() argument
1138 class_cfg = tplg_class_lookup(tplg_pp, obj); in tplg_object_update()
1154 obj_cfg = tplg_object_get_instance_config(tplg_pp, obj); in tplg_object_update()
1180 ret = tplg_object_copy_and_add_param(tplg_pp, obj_cfg, n, class_cfg); in tplg_object_update()
1198 parent_obj = tplg_object_get_instance_config(tplg_pp, parent); in tplg_object_update()
1202 ret = tplg_object_copy_and_add_param(tplg_pp, obj_cfg, n, parent_obj); in tplg_object_update()
1212 cfg = tplg_object_lookup_in_config(tplg_pp, parent_obj, class_type, in tplg_object_update()
1217 ret = tplg_object_copy_and_add_param(tplg_pp, obj_cfg, n, cfg); in tplg_object_update()
1227 cfg = tplg_class_lookup(tplg_pp, parent); in tplg_object_update()
1231 cfg = tplg_object_lookup_in_config(tplg_pp, cfg, class_type, in tplg_object_update()
1236 ret = tplg_object_copy_and_add_param(tplg_pp, obj_cfg, n, cfg); in tplg_object_update()
1249 if (!tplg_object_is_attribute_valid(tplg_pp, n, obj_cfg)) in tplg_object_update()
1256 static int tplg_object_pre_process_children(struct tplg_pre_processor *tplg_pp, in tplg_object_pre_process_children() argument
1275 ret = tplg_pre_process_objects(tplg_pp, n, parent); in tplg_object_pre_process_children()
1283 static int tplg_construct_object_name(struct tplg_pre_processor *tplg_pp, snd_config_t *obj, in tplg_construct_object_name() argument
1429 static int tplg_object_set_unique_attribute(struct tplg_pre_processor *tplg_pp, in tplg_object_set_unique_attribute() argument
1441 unique_name = tplg_class_get_unique_attribute_name(tplg_pp, class_cfg); in tplg_object_set_unique_attribute()
1446 unique_attr = tplg_class_find_attribute_by_name(tplg_pp, class_cfg, unique_name); in tplg_object_set_unique_attribute()
1454 tplg_class_get_attribute_type(tplg_pp, unique_attr)); in tplg_object_set_unique_attribute()
1479 snd_config_t *tplg_object_get_instance_config(struct tplg_pre_processor *tplg_pp, in tplg_object_get_instance_config() argument
1492 static int tplg_build_object(struct tplg_pre_processor *tplg_pp, snd_config_t *new_obj, in tplg_build_object() argument
1502 obj_local = tplg_object_get_instance_config(tplg_pp, new_obj); in tplg_build_object()
1506 class_cfg = tplg_class_lookup(tplg_pp, new_obj); in tplg_build_object()
1517 ret = tplg_object_set_unique_attribute(tplg_pp, obj_local, class_cfg, id); in tplg_build_object()
1524 ret = tplg_object_update(tplg_pp, new_obj, parent); in tplg_build_object()
1531 ret = tplg_construct_object_name(tplg_pp, obj_local, class_cfg); in tplg_build_object()
1541 map = tplg_object_get_map(tplg_pp, new_obj); in tplg_build_object()
1548 ret = auto_attr_updater(tplg_pp, obj_local, parent); in tplg_build_object()
1558 ret = builder(tplg_pp, new_obj, parent); in tplg_build_object()
1563 ret = tplg_object_pre_process_children(tplg_pp, new_obj, obj_local); in tplg_build_object()
1570 ret = tplg_object_pre_process_children(tplg_pp, new_obj, class_cfg); in tplg_build_object()
1578 int tplg_pre_process_objects(struct tplg_pre_processor *tplg_pp, snd_config_t *cfg, in tplg_pre_process_objects() argument
1640 parent_instance = tplg_object_get_instance_config(tplg_pp, parent); in tplg_pre_process_objects()
1701 ret = tplg_build_object(tplg_pp, _obj_type, parent); in tplg_pre_process_objects()