Home | History | Annotate | Download | only in libalsa-intf

Lines Matching refs:verb_index

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