Lines Matching refs:current_str
2124 char *read_buf = NULL, *next_str = NULL, *current_str = NULL, *buf = NULL; in second_stage_parsing_thread() local
2148 current_str = read_buf; in second_stage_parsing_thread()
2150 while (*current_str != (char)EOF) { in second_stage_parsing_thread()
2151 next_str = strchr(current_str, '\n'); in second_stage_parsing_thread()
2156 buf = strstr(current_str, "SectionUseCase"); in second_stage_parsing_thread()
2158 if((current_str = next_str) == NULL) in second_stage_parsing_thread()
2167 if((current_str = next_str) == NULL) in second_stage_parsing_thread()
2186 buf = strstr(current_str, "File"); in second_stage_parsing_thread()
2188 if((current_str = next_str) == NULL) in second_stage_parsing_thread()
2238 if((current_str = next_str) == NULL) in second_stage_parsing_thread()
2283 char *read_buf, *next_str, *current_str, *buf, *p, *verb_name; in snd_ucm_parse() local
2307 current_str = read_buf; in snd_ucm_parse()
2308 verb_count = get_verb_count(current_str); in snd_ucm_parse()
2325 if ((ret = is_single_config_format(current_str))) { in snd_ucm_parse()
2327 ret = parse_single_config_format(uc_mgr, current_str, verb_count); in snd_ucm_parse()
2332 while (*current_str != (char)EOF) { in snd_ucm_parse()
2333 next_str = strchr(current_str, '\n'); in snd_ucm_parse()
2338 buf = strstr(current_str, "SectionUseCase"); in snd_ucm_parse()
2340 if((current_str = next_str) == NULL) in snd_ucm_parse()
2376 buf = strstr(current_str, "File"); in snd_ucm_parse()
2378 if((current_str = next_str) == NULL) in snd_ucm_parse()
2413 if((current_str = next_str) == NULL) in snd_ucm_parse()
2449 char *current_str, int num_verbs) in parse_single_config_format() argument
2458 while (*current_str != (char)EOF) { in parse_single_config_format()
2459 next_str = strchr(current_str, '\n'); in parse_single_config_format()
2463 if ((buf = strcasestr(current_str, "SectionUseCase")) != NULL) { in parse_single_config_format()
2524 } else if (!strncasecmp(current_str, "SectionVerb", 11)) { in parse_single_config_format()
2525 ret = snd_ucm_parse_section(uc_mgr, ¤t_str, in parse_single_config_format()
2529 } else if (!strncasecmp(current_str, "SectionDevice", 13)) { in parse_single_config_format()
2544 ret = snd_ucm_parse_section(uc_mgr, ¤t_str, in parse_single_config_format()
2562 } else if (!strncasecmp(current_str, "SectionModifier", 15)) { in parse_single_config_format()
2577 ret = snd_ucm_parse_section(uc_mgr, ¤t_str, in parse_single_config_format()
2596 if((current_str = next_str) == NULL) in parse_single_config_format()
2706 char *current_str, *next_str, *str_addr, *buf; in get_num_verbs_config_format() local
2716 current_str = next_str; in get_num_verbs_config_format()
2718 next_str = strchr(current_str, '\n'); in get_num_verbs_config_format()
2722 buf = strcasestr(current_str, "SectionUseCase"); in get_num_verbs_config_format()
2725 buf = strcasestr(current_str, "SectionVerb"); in get_num_verbs_config_format()
2730 if((current_str = next_str) == NULL) in get_num_verbs_config_format()
2740 char *current_str, *next_str, *str_addr, *buf; in get_num_device_config_format() local
2750 current_str = next_str; in get_num_device_config_format()
2752 next_str = strchr(current_str, '\n'); in get_num_device_config_format()
2756 buf = strcasestr(current_str, "SectionDevice"); in get_num_device_config_format()
2761 if((current_str = next_str) == NULL) in get_num_device_config_format()
2771 char *current_str, *next_str, *str_addr, *buf; in get_num_mod_config_format() local
2781 current_str = next_str; in get_num_mod_config_format()
2783 next_str = strchr(current_str, '\n'); in get_num_mod_config_format()
2787 buf = strcasestr(current_str, "SectionModifier"); in get_num_mod_config_format()
2792 if((current_str = next_str) == NULL) in get_num_mod_config_format()
2802 char *current_str, *next_str, *str_addr, *buf, *p; in get_verb_count() local
2812 current_str = next_str; in get_verb_count()
2814 next_str = strchr(current_str, '\n'); in get_verb_count()
2818 buf = strstr(current_str, "SectionUseCase"); in get_verb_count()
2823 if((current_str = next_str) == NULL) in get_verb_count()
2833 char *current_str, *next_str, *str_addr, *buf; in is_single_config_format() local
2843 current_str = next_str; in is_single_config_format()
2845 next_str = strchr(current_str, '\n'); in is_single_config_format()
2849 buf = strstr(current_str, "SectionUseCase"); in is_single_config_format()
2852 buf = strstr(current_str, "File"); in is_single_config_format()
2857 if((current_str = next_str) == NULL) in is_single_config_format()
2877 char *read_buf, *next_str, *current_str, *verb_ptr; in snd_ucm_parse_verb() local
2914 current_str = read_buf; in snd_ucm_parse_verb()
2915 while (*current_str != (char)EOF) { in snd_ucm_parse_verb()
2916 next_str = strchr(current_str, '\n'); in snd_ucm_parse_verb()
2920 if (!strncasecmp(current_str, "SectionVerb", 11)) { in snd_ucm_parse_verb()
2924 ret = snd_ucm_parse_section(uc_mgr, ¤t_str, in snd_ucm_parse_verb()
2929 } else if (!strncasecmp(current_str, "SectionDevice", 13)) { in snd_ucm_parse_verb()
2934 ret = snd_ucm_parse_section(uc_mgr, ¤t_str, in snd_ucm_parse_verb()
2953 } else if (!strncasecmp(current_str, "SectionModifier", 15)) { in snd_ucm_parse_verb()
2958 ret = snd_ucm_parse_section(uc_mgr, ¤t_str, in snd_ucm_parse_verb()
2979 if((current_str = next_str) == NULL) in snd_ucm_parse_verb()
3180 char *current_str, *next_str, *str_addr; in get_controls_count() local
3191 current_str = next_str; in get_controls_count()
3192 next_str = strchr(current_str, '\n'); in get_controls_count()
3193 if ((!next_str) || (!strncasecmp(current_str, "EndSection", 10))) in get_controls_count()
3196 if (strcasestr(current_str, "EndSequence") != NULL) { in get_controls_count()
3203 if(!strncasecmp(current_str, "EndSection", 10)) in get_controls_count()
3220 char *p, *current_str, *next_str, *name; in snd_ucm_parse_section() local
3246 current_str = *cur_str; next_str = *nxt_str; in snd_ucm_parse_section()
3247 while(strncasecmp(current_str, "EndSection", 10)) { in snd_ucm_parse_section()
3248 current_str = next_str; in snd_ucm_parse_section()
3249 next_str = strchr(current_str, '\n'); in snd_ucm_parse_section()
3250 if ((!next_str) || (!strncasecmp(current_str, "EndSection", 10))) in snd_ucm_parse_section()
3253 if (strcasestr(current_str, "EndSequence") != NULL) { in snd_ucm_parse_section()
3262 ret = snd_ucm_extract_controls(current_str, &list->ena_mixer_list, in snd_ucm_parse_section()
3268 ret = snd_ucm_extract_controls(current_str, &list->dis_mixer_list, in snd_ucm_parse_section()
3273 } else if (strcasestr(current_str, "Name") != NULL) { in snd_ucm_parse_section()
3274 ret = snd_ucm_extract_name(current_str, &list->case_name); in snd_ucm_parse_section()
3278 } else if (strcasestr(current_str, "PlaybackPCM") != NULL) { in snd_ucm_parse_section()
3279 ret = snd_ucm_extract_dev_name(current_str, in snd_ucm_parse_section()
3285 } else if (strcasestr(current_str, "CapturePCM") != NULL) { in snd_ucm_parse_section()
3286 ret = snd_ucm_extract_dev_name(current_str, in snd_ucm_parse_section()
3291 } else if (strcasestr(current_str, "ACDBID") != NULL) { in snd_ucm_parse_section()
3292 ret = snd_ucm_extract_acdb(current_str, &list->acdb_id, in snd_ucm_parse_section()
3298 } else if (strcasestr(current_str, "EffectsMixerCTL") != NULL) { in snd_ucm_parse_section()
3299 ret = snd_ucm_extract_effects_mixer_ctl(current_str, in snd_ucm_parse_section()
3305 if (strcasestr(current_str, "EnableSequence") != NULL) { in snd_ucm_parse_section()
3318 } else if (strcasestr(current_str, "DisableSequence") != NULL) { in snd_ucm_parse_section()
3336 *cur_str = current_str; *nxt_str = next_str; in snd_ucm_parse_section()