Home
last modified time | relevance | path

Searched refs:ctl_list (Results 1 – 6 of 6) sorted by relevance

/third_party/alsa-lib/src/ucm/
Dutils.c62 struct ctl_list *uc_mgr_get_master_ctl(snd_use_case_mgr_t *uc_mgr) in uc_mgr_get_master_ctl()
65 struct ctl_list *ctl_list = NULL, *ctl_list2; in uc_mgr_get_master_ctl() local
67 list_for_each(pos, &uc_mgr->ctl_list) { in uc_mgr_get_master_ctl()
68 ctl_list2 = list_entry(pos, struct ctl_list, list); in uc_mgr_get_master_ctl()
71 if (ctl_list) { in uc_mgr_get_master_ctl()
75 ctl_list = ctl_list2; in uc_mgr_get_master_ctl()
77 return 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()
82 struct ctl_list *ctl_list; in uc_mgr_get_ctl_by_card() local
87 err = uc_mgr_open_ctl(uc_mgr, &ctl_list, cname, 1); in uc_mgr_get_ctl_by_card()
[all …]
Ducm_subs.c82 static char *get_card_number(struct ctl_list *ctl_list) in get_card_number() argument
86 if (ctl_list == NULL) in get_card_number()
88 snprintf(num, sizeof(num), "%i", snd_ctl_card_info_get_card(ctl_list->ctl_info)); in get_card_number()
101 struct ctl_list *ctl_list; in rval_card_id() local
103 ctl_list = uc_mgr_get_master_ctl(uc_mgr); in rval_card_id()
104 if (ctl_list == NULL) in rval_card_id()
106 return strdup(snd_ctl_card_info_get_id(ctl_list->ctl_info)); in rval_card_id()
111 struct ctl_list *ctl_list; in rval_card_driver() local
113 ctl_list = uc_mgr_get_master_ctl(uc_mgr); in rval_card_driver()
114 if (ctl_list == NULL) in rval_card_driver()
[all …]
Ducm_local.h120 struct ctl_list { struct
263 struct list_head ctl_list; member
317 struct ctl_list **ctl_list,
321 struct ctl_list *uc_mgr_get_master_ctl(snd_use_case_mgr_t *uc_mgr);
322 struct ctl_list *uc_mgr_get_ctl_by_card(snd_use_case_mgr_t *uc_mgr, int card);
323 struct ctl_list *uc_mgr_get_ctl_by_name(snd_use_case_mgr_t *uc_mgr,
Ducm_cond.c184 struct ctl_list *ctl_list; in if_eval_control_exists() local
233 err = uc_mgr_open_ctl(uc_mgr, &ctl_list, s, 1); in if_eval_control_exists()
237 ctl = ctl_list->ctl; in if_eval_control_exists()
Dmain.c679 struct ctl_list *ctl_list; in execute_sequence() local
752 err = uc_mgr_open_ctl(uc_mgr, &ctl_list, cdev, 1); in execute_sequence()
757 ctl = ctl_list->ctl; in execute_sequence()
900 struct ctl_list *ctl_list; in add_auto_values() local
905 ctl_list = uc_mgr_get_master_ctl(uc_mgr); in add_auto_values()
906 if (ctl_list) { in add_auto_values()
907 id = snd_ctl_card_info_get_id(ctl_list->ctl_info); in add_auto_values()
1382 INIT_LIST_HEAD(&mgr->ctl_list); in snd_use_case_mgr_open()
Dparser.c2118 struct ctl_list *ctl_list; in get_card_info() local
2121 err = uc_mgr_open_ctl(mgr, &ctl_list, ctl_name, 0); in get_card_info()
2126 *info = ctl_list->ctl_info; in get_card_info()