/third_party/alsa-lib/src/ucm/ |
D | main.c | 47 static int get_value(snd_use_case_mgr_t *uc_mgr, 53 static int get_value1(snd_use_case_mgr_t *uc_mgr, char **value, 55 static int get_value3(snd_use_case_mgr_t *uc_mgr, 62 static int execute_component_seq(snd_use_case_mgr_t *uc_mgr, 579 static int execute_cfgsave(snd_use_case_mgr_t *uc_mgr, const char *filename) in execute_cfgsave() argument 581 snd_config_t *config = uc_mgr->local_config; in execute_cfgsave() 629 static int rewrite_device_value(snd_use_case_mgr_t *uc_mgr, const char *name, char **value) in rewrite_device_value() argument 643 if (!uc_mgr_has_local_config(uc_mgr)) in rewrite_device_value() 655 snprintf(sval, l, "_ucm%04X.%s", uc_mgr->ucm_card_number, *value); in rewrite_device_value() 669 static int execute_sequence(snd_use_case_mgr_t *uc_mgr, in execute_sequence() argument [all …]
|
D | parser.c | 40 static int parse_sequence(snd_use_case_mgr_t *uc_mgr, 66 int uc_mgr_config_load_file(snd_use_case_mgr_t *uc_mgr, in uc_mgr_config_load_file() argument 72 ucm_filename(filename, sizeof(filename), uc_mgr->conf_format, in uc_mgr_config_load_file() 73 file[0] == '/' ? NULL : uc_mgr->conf_dir_name, in uc_mgr_config_load_file() 75 err = uc_mgr_config_load(uc_mgr->conf_format, filename, cfg); in uc_mgr_config_load_file() 112 int parse_string_substitute(snd_use_case_mgr_t *uc_mgr, in parse_string_substitute() argument 122 err = uc_mgr_get_substituted_value(uc_mgr, &s, str); in parse_string_substitute() 131 int parse_string_substitute3(snd_use_case_mgr_t *uc_mgr, in parse_string_substitute3() argument 134 if (uc_mgr->conf_format < 3) in parse_string_substitute3() 136 return parse_string_substitute(uc_mgr, n, res); in parse_string_substitute3() [all …]
|
D | ucm_subs.c | 33 static char *rval_open_name(snd_use_case_mgr_t *uc_mgr) in rval_open_name() argument 36 if (uc_mgr->conf_format < 3) in rval_open_name() 38 name = uc_mgr->card_name; in rval_open_name() 47 static char *rval_conf_libdir(snd_use_case_mgr_t *uc_mgr) in rval_conf_libdir() argument 49 if (uc_mgr->conf_format < 4) in rval_conf_libdir() 54 static char *rval_conf_topdir(snd_use_case_mgr_t *uc_mgr) in rval_conf_topdir() argument 58 if (uc_mgr->conf_format < 3) in rval_conf_topdir() 60 dir = uc_mgr_config_dir(uc_mgr->conf_format); in rval_conf_topdir() 66 static char *rval_conf_dir(snd_use_case_mgr_t *uc_mgr) in rval_conf_dir() argument 68 if (uc_mgr->conf_format < 3) in rval_conf_dir() [all …]
|
D | ucm_local.h | 292 int uc_mgr_config_load_file(snd_use_case_mgr_t *uc_mgr, const char *file, snd_config_t **cfg); 293 int uc_mgr_import_master_config(snd_use_case_mgr_t *uc_mgr); 304 void uc_mgr_free_verb(snd_use_case_mgr_t *uc_mgr); 305 void uc_mgr_free(snd_use_case_mgr_t *uc_mgr); 307 static inline int uc_mgr_has_local_config(snd_use_case_mgr_t *uc_mgr) in uc_mgr_has_local_config() argument 309 return uc_mgr && snd_config_iterator_first(uc_mgr->local_config) != in uc_mgr_has_local_config() 310 snd_config_iterator_end(uc_mgr->local_config); in uc_mgr_has_local_config() 313 int uc_mgr_card_open(snd_use_case_mgr_t *uc_mgr); 314 void uc_mgr_card_close(snd_use_case_mgr_t *uc_mgr); 316 int uc_mgr_open_ctl(snd_use_case_mgr_t *uc_mgr, [all …]
|
D | utils.c | 62 struct ctl_list *uc_mgr_get_master_ctl(snd_use_case_mgr_t *uc_mgr) in uc_mgr_get_master_ctl() argument 67 list_for_each(pos, &uc_mgr->ctl_list) { in uc_mgr_get_master_ctl() 80 struct ctl_list *uc_mgr_get_ctl_by_card(snd_use_case_mgr_t *uc_mgr, int card) in uc_mgr_get_ctl_by_card() argument 87 err = uc_mgr_open_ctl(uc_mgr, &ctl_list, cname, 1); in uc_mgr_get_ctl_by_card() 93 struct ctl_list *uc_mgr_get_ctl_by_name(snd_use_case_mgr_t *uc_mgr, const char *name, int idx) in uc_mgr_get_ctl_by_name() argument 101 list_for_each(pos, &uc_mgr->ctl_list) { in uc_mgr_get_ctl_by_name() 119 ctl_list = uc_mgr_get_ctl_by_card(uc_mgr, card); in uc_mgr_get_ctl_by_name() 135 snd_ctl_t *uc_mgr_get_ctl(snd_use_case_mgr_t *uc_mgr) in uc_mgr_get_ctl() argument 139 ctl_list = uc_mgr_get_master_ctl(uc_mgr); in uc_mgr_get_ctl() 159 void uc_mgr_free_ctl_list(snd_use_case_mgr_t *uc_mgr) in uc_mgr_free_ctl_list() argument [all …]
|
D | ucm_cond.c | 41 static int if_eval_string(snd_use_case_mgr_t *uc_mgr, snd_config_t *eval) in if_eval_string() argument 47 if (uc_mgr->conf_format >= 3) { in if_eval_string() 55 err = uc_mgr_get_substituted_value(uc_mgr, &s1, string1); in if_eval_string() 85 err = uc_mgr_get_substituted_value(uc_mgr, &s1, string1); in if_eval_string() 88 err = uc_mgr_get_substituted_value(uc_mgr, &s2, string2); in if_eval_string() 120 err = uc_mgr_get_substituted_value(uc_mgr, &s1, string1); in if_eval_string() 123 err = uc_mgr_get_substituted_value(uc_mgr, &s2, string2); in if_eval_string() 138 static int if_eval_regex_match(snd_use_case_mgr_t *uc_mgr, snd_config_t *eval) in if_eval_regex_match() argument 159 err = uc_mgr_get_substituted_value(uc_mgr, &s, regex_string); in if_eval_regex_match() 170 err = uc_mgr_get_substituted_value(uc_mgr, &s, string); in if_eval_regex_match() [all …]
|
D | ucm_include.c | 40 static int include_eval_one(snd_use_case_mgr_t *uc_mgr, in include_eval_one() argument 75 err = uc_mgr_get_substituted_value(uc_mgr, &s, file); in include_eval_one() 78 err = uc_mgr_config_load_file(uc_mgr, s, result); in include_eval_one() 94 static int find_position_node(snd_use_case_mgr_t *uc_mgr, in find_position_node() argument 106 err = uc_mgr_get_substituted_value(uc_mgr, &s1, s); in find_position_node() 137 static int compound_merge(snd_use_case_mgr_t *uc_mgr, const char *id, in compound_merge() argument 152 err = find_position_node(uc_mgr, &_before, dst, id, before); in compound_merge() 157 err = find_position_node(uc_mgr, &_after, dst, id, after); in compound_merge() 240 int uc_mgr_config_tree_merge(snd_use_case_mgr_t *uc_mgr, in uc_mgr_config_tree_merge() argument 249 err = uc_mgr_substitute_tree(uc_mgr, new_ctx); in uc_mgr_config_tree_merge() [all …]
|
D | ucm_regex.c | 56 static int set_variables(snd_use_case_mgr_t *uc_mgr, const char *data, in set_variables() argument 71 err = uc_mgr_set_variable(uc_mgr, name, s); in set_variables() 82 err = uc_mgr_set_variable(uc_mgr, name2, s); in set_variables() 90 int uc_mgr_define_regex(snd_use_case_mgr_t *uc_mgr, const char *name, in uc_mgr_define_regex() argument 100 if (uc_mgr->conf_format < 3) { in uc_mgr_define_regex() 151 err = uc_mgr_get_substituted_value(uc_mgr, &s, regex_string); in uc_mgr_define_regex() 161 err = uc_mgr_get_substituted_value(uc_mgr, &s, string); in uc_mgr_define_regex() 172 err = set_variables(uc_mgr, s, ARRAY_SIZE(match), match, name); in uc_mgr_define_regex()
|
/third_party/alsa-lib/include/ |
D | use-case.h | 240 int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr, 396 int snd_use_case_get(snd_use_case_mgr_t *uc_mgr, 411 int snd_use_case_geti(snd_use_case_mgr_t *uc_mgr, 442 int snd_use_case_set(snd_use_case_mgr_t *uc_mgr, 468 int snd_use_case_mgr_open(snd_use_case_mgr_t **uc_mgr, 477 int snd_use_case_mgr_reload(snd_use_case_mgr_t *uc_mgr); 484 int snd_use_case_mgr_close(snd_use_case_mgr_t *uc_mgr); 491 int snd_use_case_mgr_reset(snd_use_case_mgr_t *uc_mgr); 513 static __inline__ int snd_use_case_verb_list(snd_use_case_mgr_t *uc_mgr, in snd_use_case_verb_list() argument 516 return snd_use_case_get_list(uc_mgr, "_verbs", list); in snd_use_case_verb_list()
|
/third_party/alsa-utils/alsactl/ |
D | init_ucm.c | 36 snd_use_case_mgr_t *uc_mgr; in init_ucm() local 45 err = snd_use_case_mgr_open(&uc_mgr, id); in init_ucm() 49 err = snd_use_case_set(uc_mgr, "_fboot", NULL); in init_ucm() 57 err = snd_use_case_set(uc_mgr, "_boot", NULL); in init_ucm() 61 err = snd_use_case_set(uc_mgr, "_defaults", NULL); in init_ucm() 64 snd_use_case_mgr_close(uc_mgr); in init_ucm()
|
/third_party/alsa-utils/alsaucm/ |
D | usecase.c | 174 if (context->uc_mgr) in my_exit() 175 snd_use_case_mgr_close(context->uc_mgr); in my_exit() 205 err = snd_use_case_mgr_open(&context->uc_mgr, in do_initial_open() 222 if (cmd->opencard && context->uc_mgr == NULL) { in do_one() 234 if (context->uc_mgr) in do_one() 235 snd_use_case_mgr_close(context->uc_mgr); in do_one() 236 context->uc_mgr = NULL; in do_one() 239 err = snd_use_case_mgr_open(&context->uc_mgr, context->card); in do_one() 249 err = snd_use_case_mgr_reset(context->uc_mgr); in do_one() 259 err = snd_use_case_mgr_reload(context->uc_mgr); in do_one() [all …]
|
D | dump.c | 451 snd_use_case_mgr_t *uc_mgr = context->uc_mgr; in render_devlist() local 457 dev_num = snd_use_case_get_list(uc_mgr, buf, &dev_list); in render_devlist() 484 snd_use_case_mgr_t *uc_mgr = context->uc_mgr; in render_values() local 490 num = snd_use_case_get_list(uc_mgr, buf, &list); in render_values() 505 err = snd_use_case_get(uc_mgr, buf, &value); in render_values() 549 snd_use_case_mgr_t *uc_mgr = context->uc_mgr; in render() local 554 num = snd_use_case_verb_list(uc_mgr, &list); in render() 569 dev_num = snd_use_case_get_list(uc_mgr, buf, &dev_list); in render() 595 dev_num = snd_use_case_get_list(uc_mgr, buf, &dev_list); in render()
|
D | usecase.h | 21 snd_use_case_mgr_t *uc_mgr; member
|
/third_party/pulseaudio/src/modules/alsa/ |
D | alsa-ucm.c | 172 snd_use_case_mgr_t *uc_mgr, in ucm_verb_value() argument 178 int err = snd_use_case_get(uc_mgr, _id, &value); in ucm_verb_value() 361 snd_use_case_mgr_t *uc_mgr, in ucm_get_device_property() argument 390 err = snd_use_case_get(uc_mgr, id, &value); in ucm_get_device_property() 523 n_confdev = snd_use_case_get_list(uc_mgr, id, &devices); in ucm_get_device_property() 535 n_suppdev = snd_use_case_get_list(uc_mgr, id, &devices); in ucm_get_device_property() 550 static int ucm_get_modifier_property(pa_alsa_ucm_modifier *modifier, snd_use_case_mgr_t *uc_mgr, co… in ucm_get_modifier_property() argument 559 err = snd_use_case_get(uc_mgr, id, &value); in ucm_get_modifier_property() 570 modifier->n_confdev = snd_use_case_get_list(uc_mgr, id, &modifier->conflicting_devices); in ucm_get_modifier_property() 576 modifier->n_suppdev = snd_use_case_get_list(uc_mgr, id, &modifier->supported_devices); in ucm_get_modifier_property() [all …]
|
D | alsa-ucm.h | 150 int pa_alsa_ucm_get_verb(snd_use_case_mgr_t *uc_mgr, const char *verb_name, const char *verb_desc, …
|