Lines Matching refs:verb_index
110 int verb_index, list_size, index = 0; in snd_use_case_get_list() local
148 verb_index = index; in snd_use_case_get_list()
150 while(strncmp(verb_list[verb_index].device_list[index], in snd_use_case_get_list()
153 verb_list[verb_index].device_list[index]); in snd_use_case_get_list()
156 *list = verb_list[verb_index].device_list; in snd_use_case_get_list()
172 verb_index = index; in snd_use_case_get_list()
174 while(strncmp(verb_list[verb_index].modifier_list[index], in snd_use_case_get_list()
177 verb_list[verb_index].modifier_list[index]); in snd_use_case_get_list()
180 *list = verb_list[verb_index].modifier_list; in snd_use_case_get_list()
270 int index, verb_index = 0, ret = 0; in snd_use_case_get() local
310 verb_index = uc_mgr->card_ctxt_ptr->current_verb_index; in snd_use_case_get()
313 ctrl_list = verb_list[verb_index].verb_ctrls; in snd_use_case_get()
315 ctrl_list = verb_list[verb_index].mod_ctrls; in snd_use_case_get()
317 if((verb_index < 0) || in snd_use_case_get()
321 uc_mgr->card_ctxt_ptr->current_verb, verb_index); in snd_use_case_get()
375 index = 0; verb_index = 0; in snd_use_case_get()
377 if((verb_index < 0) || in snd_use_case_get()
380 (verb_list[verb_index].verb_ctrls == NULL)) { in snd_use_case_get()
382 uc_mgr->card_ctxt_ptr->current_verb, verb_index); in snd_use_case_get()
386 ctrl_list = verb_list[verb_index].device_ctrls; in snd_use_case_get()
403 if (verb_list[verb_index].device_ctrls[index].acdb_id) { in snd_use_case_get()
404 ret = verb_list[verb_index].device_ctrls[index].acdb_id; in snd_use_case_get()
411 index = 0; verb_index = 0; in snd_use_case_get()
413 if((verb_index < 0) || in snd_use_case_get()
416 (verb_list[verb_index].verb_ctrls == NULL)) { in snd_use_case_get()
418 uc_mgr->card_ctxt_ptr->current_verb, verb_index); in snd_use_case_get()
422 ctrl_list = verb_list[verb_index].device_ctrls; in snd_use_case_get()
438 if (verb_list[verb_index].device_ctrls[index].effects_mixer_ctl) { in snd_use_case_get()
439 *value = strdup(verb_list[verb_index].device_ctrls[index].effects_mixer_ctl); in snd_use_case_get()
582 int list_size, index, verb_index, ret = 0, voice_acdb = 0, rx_id, tx_id; in snd_use_case_apply_voice_acdb() local
615 verb_index = uc_mgr->card_ctxt_ptr->current_verb_index; in snd_use_case_apply_voice_acdb()
616 if((verb_index < 0) || in snd_use_case_apply_voice_acdb()
620 uc_mgr->card_ctxt_ptr->current_verb, verb_index); in snd_use_case_apply_voice_acdb()
625 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].device_ctrls; in snd_use_case_apply_voice_acdb()
707 int ret = 0, index = 0, verb_index; in get_use_case_index() local
710 verb_index = uc_mgr->card_ctxt_ptr->current_verb_index; in get_use_case_index()
713 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].verb_ctrls; in get_use_case_index()
716 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].device_ctrls; in get_use_case_index()
719 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].mod_ctrls; in get_use_case_index()
723 if((verb_index < 0) || in get_use_case_index()
727 uc_mgr->card_ctxt_ptr->current_verb, verb_index); in get_use_case_index()
761 int i, ret = 0, index = 0, verb_index, mixer_count; in snd_use_case_apply_mixer_controls() local
763 verb_index = uc_mgr->card_ctxt_ptr->current_verb_index; in snd_use_case_apply_mixer_controls()
766 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].verb_ctrls; in snd_use_case_apply_mixer_controls()
769 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].device_ctrls; in snd_use_case_apply_mixer_controls()
772 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].mod_ctrls; in snd_use_case_apply_mixer_controls()
776 if((verb_index < 0) || in snd_use_case_apply_mixer_controls()
780 uc_mgr->card_ctxt_ptr->current_verb, verb_index); in snd_use_case_apply_mixer_controls()
963 int verb_index, capability = 0, ident_cap = 0, dev_cap =0; in set_controls_of_usecase_for_all_devices() local
966 if ((verb_index = uc_mgr->card_ctxt_ptr->current_verb_index) < 0) in set_controls_of_usecase_for_all_devices()
967 verb_index = 0; in set_controls_of_usecase_for_all_devices()
969 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].device_ctrls; in set_controls_of_usecase_for_all_devices()
972 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].verb_ctrls; in set_controls_of_usecase_for_all_devices()
975 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].mod_ctrls; in set_controls_of_usecase_for_all_devices()
1057 int verb_index, capability = 0; in set_controls_of_usecase_for_device() local
1061 if ((verb_index = uc_mgr->card_ctxt_ptr->current_verb_index) < 0) in set_controls_of_usecase_for_device()
1062 verb_index = 0; in set_controls_of_usecase_for_device()
1064 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].device_ctrls; in set_controls_of_usecase_for_device()
1116 int verb_index, uc_index, dev_index, capability = 0; in set_controls_of_device_for_all_usecases() local
1120 if ((verb_index = uc_mgr->card_ctxt_ptr->current_verb_index) < 0) in set_controls_of_device_for_all_usecases()
1121 verb_index = 0; in set_controls_of_device_for_all_usecases()
1123 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].device_ctrls; in set_controls_of_device_for_all_usecases()
1130 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].verb_ctrls; in set_controls_of_device_for_all_usecases()
1197 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].mod_ctrls; in set_controls_of_device_for_all_usecases()
1314 int verb_index, capability = 0; in set_controls_of_device_for_usecase() local
1317 if ((verb_index = uc_mgr->card_ctxt_ptr->current_verb_index) < 0) in set_controls_of_device_for_usecase()
1318 verb_index = 0; in set_controls_of_device_for_usecase()
1320 uc_mgr->card_ctxt_ptr->use_case_verb_list[verb_index].device_ctrls; in set_controls_of_device_for_usecase()
1386 int verb_index, list_size, index = 0, ret = -EINVAL; in snd_use_case_set() local
1550 verb_index = uc_mgr->card_ctxt_ptr->current_verb_index; in snd_use_case_set()
1551 if (verb_index < 0) { in snd_use_case_set()
1554 ALOGV("Index:%d Verb:%s", verb_index, in snd_use_case_set()
1555 uc_mgr->card_ctxt_ptr->verb_list[verb_index]); in snd_use_case_set()
1557 while(strncmp(verb_list[verb_index].modifier_list[index], value, in snd_use_case_set()
1559 if (!strncmp(verb_list[verb_index].modifier_list[index], in snd_use_case_set()
1611 int verb_index, list_size, index = 0, ret = -EINVAL; in snd_use_case_set_case() local
1811 verb_index = index; index = 0; ret = 0; in snd_use_case_set_case()
1813 ALOGV("Index:%d Verb:%s", verb_index, in snd_use_case_set_case()
1814 uc_mgr->card_ctxt_ptr->verb_list[verb_index]); in snd_use_case_set_case()
1815 while(strncmp(verb_list[verb_index].modifier_list[index], in snd_use_case_set_case()
1817 if (!strncmp(verb_list[verb_index].modifier_list[index], in snd_use_case_set_case()
3102 static int print_list(card_mctrl_t *list, int verb_index, int count) in print_list() argument
3135 int i, j, verb_index = 0; in snd_ucm_print() local
3140 while(strncmp(uc_mgr->card_ctxt_ptr->verb_list[verb_index], in snd_ucm_print()
3143 uc_mgr->card_ctxt_ptr->verb_list[verb_index]); in snd_ucm_print()
3144 if(verb_list[verb_index].device_list) { in snd_ucm_print()
3147 while(strncmp(verb_list[verb_index].device_list[i], in snd_ucm_print()
3149 ALOGD("\t\t%s", verb_list[verb_index].device_list[i]); in snd_ucm_print()
3153 if(verb_list[verb_index].modifier_list) { in snd_ucm_print()
3156 while(strncmp(verb_list[verb_index].modifier_list[i], in snd_ucm_print()
3158 ALOGD("\t\t%s", verb_list[verb_index].modifier_list[i]); in snd_ucm_print()
3163 list = verb_list[verb_index].verb_ctrls; in snd_ucm_print()
3164 print_list(list, verb_index, verb_list[verb_index].verb_count); in snd_ucm_print()
3166 list = verb_list[verb_index].device_ctrls; in snd_ucm_print()
3167 print_list(list, verb_index, verb_list[verb_index].device_count); in snd_ucm_print()
3169 list = verb_list[verb_index].mod_ctrls; in snd_ucm_print()
3170 print_list(list, verb_index, verb_list[verb_index].mod_count); in snd_ucm_print()
3171 verb_index++; in snd_ucm_print()
3215 char **nxt_str, int verb_index, int ctrl_list_type) in snd_ucm_parse_section() argument
3224 list = (verb_list[verb_index].verb_ctrls + in snd_ucm_parse_section()
3225 verb_list[verb_index].verb_count); in snd_ucm_parse_section()
3227 list = (verb_list[verb_index].device_ctrls + in snd_ucm_parse_section()
3228 verb_list[verb_index].device_count); in snd_ucm_parse_section()
3230 list = (verb_list[verb_index].mod_ctrls + in snd_ucm_parse_section()
3231 verb_list[verb_index].mod_count); in snd_ucm_parse_section()
3338 verb_list[verb_index].verb_count++; in snd_ucm_parse_section()
3340 verb_list[verb_index].device_count++; in snd_ucm_parse_section()
3342 verb_list[verb_index].mod_count++; in snd_ucm_parse_section()
3583 void free_list(card_mctrl_t *list, int verb_index, int count) in free_list() argument
3649 int index = 0, verb_index = 0; in snd_ucm_free_mixer_list() local
3653 while(strncmp((*uc_mgr)->card_ctxt_ptr->verb_list[verb_index], in snd_ucm_free_mixer_list()
3655 ctrl_list = verb_list[verb_index].verb_ctrls; in snd_ucm_free_mixer_list()
3656 free_list(ctrl_list, verb_index, verb_list[verb_index].verb_count); in snd_ucm_free_mixer_list()
3657 if(verb_list[verb_index].use_case_name) in snd_ucm_free_mixer_list()
3658 free(verb_list[verb_index].use_case_name); in snd_ucm_free_mixer_list()
3659 if((*uc_mgr)->card_ctxt_ptr->verb_list[verb_index]) { in snd_ucm_free_mixer_list()
3660 free((*uc_mgr)->card_ctxt_ptr->verb_list[verb_index]); in snd_ucm_free_mixer_list()
3662 verb_index++; in snd_ucm_free_mixer_list()
3664 verb_index -= 1; in snd_ucm_free_mixer_list()
3665 ctrl_list = verb_list[verb_index].device_ctrls; in snd_ucm_free_mixer_list()
3666 free_list(ctrl_list, verb_index, verb_list[verb_index].device_count); in snd_ucm_free_mixer_list()
3667 ctrl_list = verb_list[verb_index].mod_ctrls; in snd_ucm_free_mixer_list()
3668 free_list(ctrl_list, verb_index, verb_list[verb_index].mod_count); in snd_ucm_free_mixer_list()
3671 if (verb_list[verb_index].device_list[index]) { in snd_ucm_free_mixer_list()
3672 if (!strncmp(verb_list[verb_index].device_list[index], in snd_ucm_free_mixer_list()
3674 free(verb_list[verb_index].device_list[index]); in snd_ucm_free_mixer_list()
3677 free(verb_list[verb_index].device_list[index]); in snd_ucm_free_mixer_list()
3682 if (verb_list[verb_index].device_list) in snd_ucm_free_mixer_list()
3683 free(verb_list[verb_index].device_list); in snd_ucm_free_mixer_list()
3686 if (verb_list[verb_index].modifier_list[index]) { in snd_ucm_free_mixer_list()
3687 if (!strncmp(verb_list[verb_index].modifier_list[index], in snd_ucm_free_mixer_list()
3689 free(verb_list[verb_index].modifier_list[index]); in snd_ucm_free_mixer_list()
3692 free(verb_list[verb_index].modifier_list[index]); in snd_ucm_free_mixer_list()
3697 if (verb_list[verb_index].modifier_list) in snd_ucm_free_mixer_list()
3698 free(verb_list[verb_index].modifier_list); in snd_ucm_free_mixer_list()