• Home
  • Raw
  • Download

Lines Matching refs:index

110     int verb_index, list_size, index = 0;  in snd_use_case_get_list()  local
126 while(strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], in snd_use_case_get_list()
128 ALOGV("Index:%d Verb:%s", index, in snd_use_case_get_list()
129 uc_mgr->card_ctxt_ptr->verb_list[index]); in snd_use_case_get_list()
130 index++; in snd_use_case_get_list()
134 return index; in snd_use_case_get_list()
144 verb_list[index].use_case_name, in snd_use_case_get_list()
145 (strlen(verb_list[index].use_case_name)+1))) { in snd_use_case_get_list()
146 index++; in snd_use_case_get_list()
148 verb_index = index; in snd_use_case_get_list()
149 index = 0; in snd_use_case_get_list()
150 while(strncmp(verb_list[verb_index].device_list[index], in snd_use_case_get_list()
152 ALOGV("Index:%d Device:%s", index, in snd_use_case_get_list()
153 verb_list[verb_index].device_list[index]); in snd_use_case_get_list()
154 index++; in snd_use_case_get_list()
158 return index; in snd_use_case_get_list()
168 verb_list[index].use_case_name, in snd_use_case_get_list()
169 (strlen(verb_list[index].use_case_name)+1))) { in snd_use_case_get_list()
170 index++; in snd_use_case_get_list()
172 verb_index = index; in snd_use_case_get_list()
173 index = 0; in snd_use_case_get_list()
174 while(strncmp(verb_list[verb_index].modifier_list[index], in snd_use_case_get_list()
176 ALOGV("Index:%d Modifier:%s", index, in snd_use_case_get_list()
177 verb_list[verb_index].modifier_list[index]); in snd_use_case_get_list()
178 index++; in snd_use_case_get_list()
182 return index; in snd_use_case_get_list()
185 for (index = 0; index < uc_mgr->device_list_count; index++) { in snd_use_case_get_list()
186 free(uc_mgr->current_device_list[index]); in snd_use_case_get_list()
187 uc_mgr->current_device_list[index] = NULL; in snd_use_case_get_list()
204 for (index = 0; index < list_size; index++) { in snd_use_case_get_list()
205 uc_mgr->current_device_list[index] = in snd_use_case_get_list()
207 index); in snd_use_case_get_list()
215 for (index = 0; index < uc_mgr->modifier_list_count; index++) { in snd_use_case_get_list()
216 free(uc_mgr->current_modifier_list[index]); in snd_use_case_get_list()
217 uc_mgr->current_modifier_list[index] = NULL; in snd_use_case_get_list()
234 for (index = 0; index < list_size; index++) { in snd_use_case_get_list()
235 uc_mgr->current_modifier_list[index] = in snd_use_case_get_list()
237 index); in snd_use_case_get_list()
270 int index, verb_index = 0, ret = 0; in snd_use_case_get() local
308 index = 0; in snd_use_case_get()
325 while(strncmp(ctrl_list[index].case_name, ident2, in snd_use_case_get()
327 if (!strncmp(ctrl_list[index].case_name, in snd_use_case_get()
333 index++; in snd_use_case_get()
344 if (ctrl_list[index].playback_dev_name) { in snd_use_case_get()
345 *value = strdup(ctrl_list[index].playback_dev_name); in snd_use_case_get()
351 if (ctrl_list[index].capture_dev_name) { in snd_use_case_get()
352 *value = strdup(ctrl_list[index].capture_dev_name); in snd_use_case_get()
375 index = 0; verb_index = 0; in snd_use_case_get()
388 while(strncmp(ctrl_list[index].case_name, ident2, in snd_use_case_get()
389 MAX_LEN(ctrl_list[index].case_name,ident2))) { in snd_use_case_get()
390 if (!strncmp(ctrl_list[index].case_name, SND_UCM_END_OF_LIST, in snd_use_case_get()
395 index++; 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()
424 while(strncmp(ctrl_list[index].case_name, ident2, strlen(ident2)+1)) { in snd_use_case_get()
425 if (!strncmp(ctrl_list[index].case_name, SND_UCM_END_OF_LIST, in snd_use_case_get()
430 index++; 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()
468 int index, list_size, ret = -EINVAL; in snd_use_case_geti() local
489 for (index = 0; index < list_size; index++) { in snd_use_case_geti()
492 index))) { in snd_use_case_geti()
512 for (index = 0; index < list_size; index++) { in snd_use_case_geti()
515 index))) { in snd_use_case_geti()
542 int index = 0, list_size = 0, rx_dev_status = 0, tx_dev_status = 0; in check_devices_for_voice_call() local
555 for (index = 0; index < list_size; index++) { in check_devices_for_voice_call()
558 index))) { in check_devices_for_voice_call()
582 int list_size, index, verb_index, ret = 0, voice_acdb = 0, rx_id, tx_id; in snd_use_case_apply_voice_acdb() local
596 for (index = 0; index < list_size; index++) { in snd_use_case_apply_voice_acdb()
599 index))) { in snd_use_case_apply_voice_acdb()
628 for (index = 0; index < list_size; index++) { in snd_use_case_apply_voice_acdb()
631 index))) { in snd_use_case_apply_voice_acdb()
640 index = 0; in snd_use_case_apply_voice_acdb()
642 while(strncmp(ctrl_list[index].case_name, ident_value, in snd_use_case_apply_voice_acdb()
644 if (!strncmp(ctrl_list[index].case_name, SND_UCM_END_OF_LIST, in snd_use_case_apply_voice_acdb()
649 index++; in snd_use_case_apply_voice_acdb()
656 tx_id = ctrl_list[index].acdb_id; in snd_use_case_apply_voice_acdb()
658 rx_id = ctrl_list[index].acdb_id; in snd_use_case_apply_voice_acdb()
707 int ret = 0, index = 0, verb_index; in get_use_case_index() local
725 (ctrl_list == NULL) || (ctrl_list[index].case_name == NULL)) { in get_use_case_index()
730 while(strncmp(ctrl_list[index].case_name, use_case, (strlen(use_case)+1))) { in get_use_case_index()
731 if (!strncmp(ctrl_list[index].case_name, SND_UCM_END_OF_LIST, in get_use_case_index()
736 index++; in get_use_case_index()
737 if (ctrl_list[index].case_name == NULL) { in get_use_case_index()
738 ALOGE("Invalid case_name at index %d", index); in get_use_case_index()
746 return 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
820 for(index = 0; index < mixer_count; index++) { in snd_use_case_apply_mixer_controls()
826 mixer_list[index].control_name, 0); in snd_use_case_apply_mixer_controls()
828 if (mixer_list[index].type == TYPE_INT) { in snd_use_case_apply_mixer_controls()
830 mixer_list[index].control_name, in snd_use_case_apply_mixer_controls()
831 mixer_list[index].value); in snd_use_case_apply_mixer_controls()
832 ret = mixer_ctl_set(ctl, mixer_list[index].value); in snd_use_case_apply_mixer_controls()
833 } else if (mixer_list[index].type == TYPE_MULTI_VAL) { in snd_use_case_apply_mixer_controls()
835 mixer_list[index].control_name); in snd_use_case_apply_mixer_controls()
836 ret = mixer_ctl_set_value(ctl, mixer_list[index].value, in snd_use_case_apply_mixer_controls()
837 mixer_list[index].mulval); in snd_use_case_apply_mixer_controls()
840 mixer_list[index].control_name); in snd_use_case_apply_mixer_controls()
843 mixer_list[index].control_name, in snd_use_case_apply_mixer_controls()
844 mixer_list[index].string); in snd_use_case_apply_mixer_controls()
845 ret = mixer_ctl_select(ctl, mixer_list[index].string); in snd_use_case_apply_mixer_controls()
962 int list_size, index, uc_index, ret = 0, intdev_flag = 0; in set_controls_of_usecase_for_all_devices() local
981 for (index = 0; index < list_size; index++) { in set_controls_of_usecase_for_all_devices()
983 snd_ucm_get_value_at_index(uc_mgr->card_ctxt_ptr->dev_list_head, index); in set_controls_of_usecase_for_all_devices()
1056 int list_size, index, dev_index, uc_index, ret = 0; in set_controls_of_usecase_for_device() local
1117 int list_size, index = 0, ret = -ENODEV, flag = 0, intdev_flag = 0; in set_controls_of_device_for_all_usecases() local
1199 for (index = 0; index < list_size; index++) { in set_controls_of_device_for_all_usecases()
1202 index))) { in set_controls_of_device_for_all_usecases()
1284 int ret = -EINVAL, index = 0; in get_usecase_type() local
1286 while (strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], in get_usecase_type()
1288 if (!strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], usecase, in get_usecase_type()
1293 index++; in get_usecase_type()
1386 int verb_index, list_size, index = 0, ret = -EINVAL; in snd_use_case_set() local
1459 while (strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], in snd_use_case_set()
1461 if (!strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], value, in snd_use_case_set()
1466 index++; in snd_use_case_set()
1472 ALOGV("Index:%d Verb:%s", index, in snd_use_case_set()
1473 uc_mgr->card_ctxt_ptr->verb_list[index]); in snd_use_case_set()
1491 uc_mgr->card_ctxt_ptr->current_verb_index = index; in snd_use_case_set()
1497 index = 0; ret = 0; in snd_use_case_set()
1500 for (index = 0; index < list_size; index++) { in snd_use_case_set()
1503 index))) { in snd_use_case_set()
1513 if (index == list_size) { in snd_use_case_set()
1542 index = get_use_case_index(uc_mgr, value, CTRL_LIST_DEVICE); in snd_use_case_set()
1545 CTRL_LIST_DEVICE, index); in snd_use_case_set()
1549 index = 0; ret = 0; 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()
1564 index++; in snd_use_case_set()
1611 int verb_index, list_size, index = 0, ret = -EINVAL; in snd_use_case_set_case() local
1684 while (strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], in snd_use_case_set_case()
1686 if (!strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], in snd_use_case_set_case()
1691 index++; in snd_use_case_set_case()
1697 ALOGV("Index:%d Verb:%s", index, in snd_use_case_set_case()
1698 uc_mgr->card_ctxt_ptr->verb_list[index]); in snd_use_case_set_case()
1715 uc_mgr->card_ctxt_ptr->current_verb_index = index; in snd_use_case_set_case()
1716 index = 0; in snd_use_case_set_case()
1719 for (index = 0; index < list_size; index++) { in snd_use_case_set_case()
1721 uc_mgr->card_ctxt_ptr->dev_list_head, index))) { in snd_use_case_set_case()
1731 if (index == list_size) { in snd_use_case_set_case()
1742 index = 0; ret = 0; in snd_use_case_set_case()
1745 for (index = 0; index < list_size; index++) { in snd_use_case_set_case()
1748 index))) { in snd_use_case_set_case()
1757 if (index == list_size) { in snd_use_case_set_case()
1798 while(strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], in snd_use_case_set_case()
1800 if (!strncmp(uc_mgr->card_ctxt_ptr->verb_list[index], in snd_use_case_set_case()
1805 index++; in snd_use_case_set_case()
1811 verb_index = index; index = 0; ret = 0; 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()
1822 index++; in snd_use_case_set_case()
1827 index = 0; in snd_use_case_set_case()
1830 for (index = 0; index < list_size; index++) { in snd_use_case_set_case()
1832 uc_mgr->card_ctxt_ptr->dev_list_head, index))) { in snd_use_case_set_case()
1842 if (index == list_size) { in snd_use_case_set_case()
1883 int index, ret = -EINVAL; in snd_use_case_mgr_open() local
1893 for (index = 0; index < (int)MAX_NUM_CARDS; index++) { in snd_use_case_mgr_open()
1894 if(!strncmp(card_name, card_mapping_list[index].card_name, in snd_use_case_mgr_open()
1895 (strlen(card_mapping_list[index].card_name)+1))) { in snd_use_case_mgr_open()
1910 uc_mgr_ptr->snd_card_index = index; in snd_use_case_mgr_open()
1920 card_mapping_list[index].card_number; in snd_use_case_mgr_open()
2038 int index, list_size, ret = 0; in snd_use_case_mgr_reset() local
2051 for (index = (list_size-1); index >= 0; index--) { in snd_use_case_mgr_reset()
2054 index))) { in snd_use_case_mgr_reset()
2066 for (index = 0; index < uc_mgr->modifier_list_count; index++) { in snd_use_case_mgr_reset()
2067 free(uc_mgr->current_modifier_list[index]); in snd_use_case_mgr_reset()
2068 uc_mgr->current_modifier_list[index] = NULL; in snd_use_case_mgr_reset()
2087 for (index = (list_size-1); index >= 0; index--) { in snd_use_case_mgr_reset()
2090 index))) { in snd_use_case_mgr_reset()
2103 for (index = 0; index < uc_mgr->device_list_count; index++) { in snd_use_case_mgr_reset()
2104 free(uc_mgr->current_device_list[index]); in snd_use_case_mgr_reset()
2105 uc_mgr->current_device_list[index] = NULL; in snd_use_case_mgr_reset()
2123 int fd, index = 0, ret = 0, rc = 0; in second_stage_parsing_thread() local
2165 if (index == 0) { in second_stage_parsing_thread()
2166 index++; in second_stage_parsing_thread()
2208 ret = snd_ucm_parse_verb(uc_mgr, file_name, index); in second_stage_parsing_thread()
2209 verb_list[index].use_case_name = in second_stage_parsing_thread()
2211 strlcpy(verb_list[index].use_case_name, verb_name, in second_stage_parsing_thread()
2218 if((*uc_mgr)->card_ctxt_ptr->verb_list[index]) { in second_stage_parsing_thread()
2219 free((*uc_mgr)->card_ctxt_ptr->verb_list[index]); in second_stage_parsing_thread()
2220 (*uc_mgr)->card_ctxt_ptr->verb_list[index] = NULL; in second_stage_parsing_thread()
2222 (*uc_mgr)->card_ctxt_ptr->verb_list[index] = in second_stage_parsing_thread()
2224 strlcpy((*uc_mgr)->card_ctxt_ptr->verb_list[index], verb_name, in second_stage_parsing_thread()
2231 index++; in second_stage_parsing_thread()
2232 (*uc_mgr)->card_ctxt_ptr->verb_list[index] = in second_stage_parsing_thread()
2234 strlcpy((*uc_mgr)->card_ctxt_ptr->verb_list[index], in second_stage_parsing_thread()
2282 int fd, verb_count, index = 0, ret = 0, rc; in snd_ucm_parse() local
2357 if ((verb_list[index].use_case_name = in snd_ucm_parse()
2359 strlcpy(verb_list[index].use_case_name, in snd_ucm_parse()
2365 if (((*uc_mgr)->card_ctxt_ptr->verb_list[index] = in snd_ucm_parse()
2367 strlcpy((*uc_mgr)->card_ctxt_ptr->verb_list[index], in snd_ucm_parse()
2397 ret = snd_ucm_parse_verb(uc_mgr, file_name, index); in snd_ucm_parse()
2405 index++; in snd_ucm_parse()
2418 if (((*uc_mgr)->card_ctxt_ptr->verb_list[index] = in snd_ucm_parse()
2420 strlcpy((*uc_mgr)->card_ctxt_ptr->verb_list[index], SND_UCM_END_OF_LIST, in snd_ucm_parse()
2454 int verb_count = 0, device_count = 0, mod_count = 0, index = -1, ret = 0; in parse_single_config_format() local
2464 if (index != -1) { in parse_single_config_format()
2465 list = (verb_list[index].verb_ctrls + in parse_single_config_format()
2466 verb_list[index].verb_count); in parse_single_config_format()
2470 free(verb_list[index].verb_ctrls); in parse_single_config_format()
2484 index++; in parse_single_config_format()
2490 if ((verb_list[index].use_case_name = in parse_single_config_format()
2492 strlcpy(verb_list[index].use_case_name, in parse_single_config_format()
2498 if (((*uc_mgr)->card_ctxt_ptr->verb_list[index] = in parse_single_config_format()
2500 strlcpy((*uc_mgr)->card_ctxt_ptr->verb_list[index], in parse_single_config_format()
2508 verb_list[index].verb_count = 0; in parse_single_config_format()
2509 verb_list[index].device_count = 0; in parse_single_config_format()
2510 verb_list[index].mod_count = 0; in parse_single_config_format()
2511 verb_list[index].device_list = NULL; in parse_single_config_format()
2512 verb_list[index].modifier_list = NULL; in parse_single_config_format()
2513 verb_list[index].verb_ctrls = NULL; in parse_single_config_format()
2514 verb_list[index].device_ctrls = NULL; in parse_single_config_format()
2515 verb_list[index].mod_ctrls = NULL; in parse_single_config_format()
2517 verb_list[index].verb_ctrls = (card_mctrl_t *) in parse_single_config_format()
2519 if (verb_list[index].verb_ctrls == NULL) { in parse_single_config_format()
2523 verb_list[index].verb_count = 0; in parse_single_config_format()
2526 &next_str, index, CTRL_LIST_VERB); in parse_single_config_format()
2599 list = (verb_list[index].verb_ctrls + in parse_single_config_format()
2600 verb_list[index].verb_count); in parse_single_config_format()
2604 free(verb_list[index].verb_ctrls); in parse_single_config_format()
2617 index++; in parse_single_config_format()
2618 if (index != -1) { in parse_single_config_format()
2619 if (((*uc_mgr)->card_ctxt_ptr->verb_list[index] = in parse_single_config_format()
2621 strlcpy((*uc_mgr)->card_ctxt_ptr->verb_list[index], in parse_single_config_format()
2683 for (index = 1; index < num_verbs; index++) { in parse_single_config_format()
2684 verb_list[index].device_ctrls = verb_list[0].device_ctrls; in parse_single_config_format()
2685 verb_list[index].device_list = verb_list[0].device_list; in parse_single_config_format()
2686 verb_list[index].device_count = verb_list[0].device_count; in parse_single_config_format()
2687 verb_list[index].mod_ctrls = verb_list[0].mod_ctrls; in parse_single_config_format()
2688 verb_list[index].modifier_list = verb_list[0].modifier_list; in parse_single_config_format()
2689 verb_list[index].mod_count = verb_list[0].mod_count; in parse_single_config_format()
2871 const char *file_name, int index) in snd_ucm_parse_verb() argument
2888 verb_list[index].verb_count = 0; in snd_ucm_parse_verb()
2889 verb_list[index].device_count = 0; in snd_ucm_parse_verb()
2890 verb_list[index].mod_count = 0; in snd_ucm_parse_verb()
2891 verb_list[index].device_list = NULL; in snd_ucm_parse_verb()
2892 verb_list[index].modifier_list = NULL; in snd_ucm_parse_verb()
2893 verb_list[index].verb_ctrls = NULL; in snd_ucm_parse_verb()
2894 verb_list[index].device_ctrls = NULL; in snd_ucm_parse_verb()
2895 verb_list[index].mod_ctrls = NULL; in snd_ucm_parse_verb()
2922 verb_list[index].verb_count++; in snd_ucm_parse_verb()
2925 &next_str, index, CTRL_LIST_VERB); in snd_ucm_parse_verb()
2931 verb_list[index].device_count++; in snd_ucm_parse_verb()
2935 &next_str, index, CTRL_LIST_DEVICE); in snd_ucm_parse_verb()
2939 list = (verb_list[index].device_ctrls + in snd_ucm_parse_verb()
2940 (verb_list[index].device_count - 1)); in snd_ucm_parse_verb()
2949 verb_list[index].device_list[device_count] = verb_ptr; in snd_ucm_parse_verb()
2955 verb_list[index].mod_count++; in snd_ucm_parse_verb()
2959 &next_str, index, CTRL_LIST_MODIFIER); in snd_ucm_parse_verb()
2963 list = (verb_list[index].mod_ctrls + in snd_ucm_parse_verb()
2964 (verb_list[index].mod_count - 1)); in snd_ucm_parse_verb()
2973 verb_list[index].modifier_list[modifier_count] in snd_ucm_parse_verb()
2987 verb_list[index].device_list = in snd_ucm_parse_verb()
2989 if (verb_list[index].device_list == NULL) in snd_ucm_parse_verb()
2991 verb_list[index].modifier_list = in snd_ucm_parse_verb()
2993 if (verb_list[index].modifier_list == NULL) in snd_ucm_parse_verb()
2995 parse_count += verb_list[index].verb_count; in snd_ucm_parse_verb()
2996 verb_list[index].verb_ctrls = (card_mctrl_t *) in snd_ucm_parse_verb()
2997 malloc((verb_list[index].verb_count+1)*sizeof(card_mctrl_t)); in snd_ucm_parse_verb()
2998 if (verb_list[index].verb_ctrls == NULL) { in snd_ucm_parse_verb()
3002 verb_list[index].verb_count = 0; in snd_ucm_parse_verb()
3003 parse_count += verb_list[index].device_count; in snd_ucm_parse_verb()
3004 verb_list[index].device_ctrls = (card_mctrl_t *) in snd_ucm_parse_verb()
3005 malloc((verb_list[index].device_count+1)*sizeof(card_mctrl_t)); in snd_ucm_parse_verb()
3006 if (verb_list[index].device_ctrls == NULL) { in snd_ucm_parse_verb()
3010 verb_list[index].device_count = 0; in snd_ucm_parse_verb()
3011 parse_count += verb_list[index].mod_count; in snd_ucm_parse_verb()
3012 verb_list[index].mod_ctrls = (card_mctrl_t *) in snd_ucm_parse_verb()
3013 malloc((verb_list[index].mod_count+1)*sizeof(card_mctrl_t)); in snd_ucm_parse_verb()
3014 if (verb_list[index].mod_ctrls == NULL) { in snd_ucm_parse_verb()
3018 verb_list[index].mod_count = 0; in snd_ucm_parse_verb()
3027 verb_list[index].device_list[device_count] = verb_ptr; in snd_ucm_parse_verb()
3034 verb_list[index].modifier_list[modifier_count] = verb_ptr; in snd_ucm_parse_verb()
3035 list = (verb_list[index].verb_ctrls + in snd_ucm_parse_verb()
3036 verb_list[index].verb_count); in snd_ucm_parse_verb()
3040 free(verb_list[index].verb_ctrls); in snd_ucm_parse_verb()
3053 list = (verb_list[index].device_ctrls + in snd_ucm_parse_verb()
3054 verb_list[index].device_count); in snd_ucm_parse_verb()
3058 free(verb_list[index].device_ctrls); in snd_ucm_parse_verb()
3071 list = (verb_list[index].mod_ctrls + in snd_ucm_parse_verb()
3072 verb_list[index].mod_count); in snd_ucm_parse_verb()
3076 free(verb_list[index].mod_ctrls); in snd_ucm_parse_verb()
3482 int ret = -EINVAL, i, index = 0, count = 0; in snd_ucm_extract_controls() local
3541 index = 0; in snd_ucm_extract_controls()
3546 list->mulval[index] = in snd_ucm_extract_controls()
3548 strlcpy(list->mulval[index], pmv, (strlen(pmv)+1)); in snd_ucm_extract_controls()
3549 index++; in snd_ucm_extract_controls()
3559 list->mulval[index] = in snd_ucm_extract_controls()
3561 strlcpy(list->mulval[index], temp_coeff, in snd_ucm_extract_controls()
3563 index++; in snd_ucm_extract_controls()
3585 int case_index = 0, index = 0, mindex = 0; in free_list() local
3588 for(index = 0; index < list[case_index].ena_mixer_count; index++) { in free_list()
3589 if(list[case_index].ena_mixer_list[index].control_name) { in free_list()
3590 free(list[case_index].ena_mixer_list[index].control_name); in free_list()
3592 if(list[case_index].ena_mixer_list[index].string) { in free_list()
3593 free(list[case_index].ena_mixer_list[index].string); in free_list()
3595 if(list[case_index].ena_mixer_list[index].mulval) { in free_list()
3597 mindex < list[case_index].ena_mixer_list[index].value; in free_list()
3599 free(list[case_index].ena_mixer_list[index].mulval[mindex]); in free_list()
3601 if(list[case_index].ena_mixer_list[index].mulval) { in free_list()
3602 free(list[case_index].ena_mixer_list[index].mulval); in free_list()
3606 for(index = 0; index < list[case_index].dis_mixer_count; index++) { in free_list()
3607 if(list[case_index].dis_mixer_list[index].control_name) { in free_list()
3608 free(list[case_index].dis_mixer_list[index].control_name); in free_list()
3610 if(list[case_index].dis_mixer_list[index].string) { in free_list()
3611 free(list[case_index].dis_mixer_list[index].string); in free_list()
3613 if(list[case_index].dis_mixer_list[index].mulval) { in free_list()
3615 mindex < list[case_index].dis_mixer_list[index].value; in free_list()
3617 free(list[case_index].dis_mixer_list[index].mulval[mindex]); in free_list()
3619 if(list[case_index].dis_mixer_list[index].mulval) { in free_list()
3620 free(list[case_index].dis_mixer_list[index].mulval); in free_list()
3649 int index = 0, verb_index = 0; in snd_ucm_free_mixer_list() local
3669 index = 0; 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()
3678 index++; in snd_ucm_free_mixer_list()
3684 index = 0; 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()
3693 index++; in snd_ucm_free_mixer_list()
3767 int index) in snd_ucm_get_device_node() argument
3774 if ((index < 0) || (index >= (snd_ucm_get_size_of_list(head)))) { in snd_ucm_get_device_node()
3775 ALOGE("Element with given index %d doesn't exist in the list", index); in snd_ucm_get_device_node()
3779 while (index) { in snd_ucm_get_device_node()
3781 index--; in snd_ucm_get_device_node()
3815 int index) in snd_ucm_get_value_at_index() argument
3822 if ((index < 0) || (index >= (snd_ucm_get_size_of_list(head)))) { in snd_ucm_get_value_at_index()
3823 ALOGE("Element with given index %d doesn't exist in the list", index); in snd_ucm_get_value_at_index()
3827 while (index) { in snd_ucm_get_value_at_index()
3829 index--; in snd_ucm_get_value_at_index()
3841 int index = 0; in snd_ucm_get_size_of_list() local
3849 index++; in snd_ucm_get_size_of_list()
3853 return (index+1); in snd_ucm_get_size_of_list()
3858 int index = 0; in snd_ucm_print_list() local
3867 ALOGV("index: %d, value: %s", index, head->ident); in snd_ucm_print_list()
3868 index++; in snd_ucm_print_list()
3871 ALOGV("index: %d, value: %s", index, head->ident); in snd_ucm_print_list()