Lines Matching refs:case_name
325 while(strncmp(ctrl_list[index].case_name, ident2,
327 if (!strncmp(ctrl_list[index].case_name,
388 while(strncmp(ctrl_list[index].case_name, ident2,
389 MAX_LEN(ctrl_list[index].case_name,ident2))) {
390 if (!strncmp(ctrl_list[index].case_name, SND_UCM_END_OF_LIST,
424 while(strncmp(ctrl_list[index].case_name, ident2, strlen(ident2)+1)) {
425 if (!strncmp(ctrl_list[index].case_name, SND_UCM_END_OF_LIST,
632 if (strncmp(ident_value, ctrl_list[use_case_index].case_name,
633 (strlen(ctrl_list[use_case_index].case_name)+1))) {
642 while(strncmp(ctrl_list[index].case_name, ident_value,
644 if (!strncmp(ctrl_list[index].case_name, SND_UCM_END_OF_LIST,
725 (ctrl_list == NULL) || (ctrl_list[index].case_name == NULL)) {
730 while(strncmp(ctrl_list[index].case_name, use_case, (strlen(use_case)+1))) {
731 if (!strncmp(ctrl_list[index].case_name, SND_UCM_END_OF_LIST,
737 if (ctrl_list[index].case_name == NULL) {
738 ALOGE("Invalid case_name at index %d", index);
2467 list->case_name = (char *)
2469 if(list->case_name == NULL) {
2473 strlcpy(list->case_name, SND_UCM_END_OF_LIST,
2552 malloc((strlen(list->case_name)+1)*sizeof(char));
2557 strlcpy(verb_ptr, list->case_name,
2558 ((strlen(list->case_name)+1)*sizeof(char)));
2585 malloc((strlen(list->case_name)+1)*sizeof(char));
2590 strlcpy(verb_ptr, list->case_name,
2591 ((strlen(list->case_name)+1)*sizeof(char)));
2601 list->case_name =
2603 if(list->case_name == NULL) {
2607 strlcpy(list->case_name, SND_UCM_END_OF_LIST,
2648 list->case_name =
2650 if(list->case_name == NULL) {
2654 strlcpy(list->case_name, SND_UCM_END_OF_LIST,
2667 list->case_name =
2669 if(list->case_name == NULL) {
2673 strlcpy(list->case_name, SND_UCM_END_OF_LIST,
2942 malloc((strlen(list->case_name)+1)*sizeof(char));
2947 strlcpy(verb_ptr, list->case_name,
2948 ((strlen(list->case_name)+1)*sizeof(char)));
2966 malloc((strlen(list->case_name)+1)*sizeof(char));
2971 strlcpy(verb_ptr, list->case_name,
2972 ((strlen(list->case_name)+1)*sizeof(char)));
3037 list->case_name =
3039 if(list->case_name == NULL) {
3043 strlcpy(list->case_name, SND_UCM_END_OF_LIST,
3055 list->case_name =
3057 if(list->case_name == NULL) {
3061 strlcpy(list->case_name, SND_UCM_END_OF_LIST,
3073 list->case_name =
3075 if(list->case_name == NULL) {
3079 strlcpy(list->case_name, SND_UCM_END_OF_LIST,
3107 ALOGD("\tcase name: %s\n", list[i].case_name);
3236 list->case_name = NULL;
3274 ret = snd_ucm_extract_name(current_str, &list->case_name);
3277 ALOGV("Name of section is %s\n", list->case_name);
3351 static int snd_ucm_extract_name(char *buf, char **case_name)
3354 char *p, *name = *case_name, *temp_ptr;
3367 *case_name = name;
3624 if(list[case_index].case_name) {
3625 free(list[case_index].case_name);