Lines Matching defs:res
116 static int get_dev_name1(struct hint_list *list, char **res, int device,
119 *res = NULL;
130 *res = strdup(snd_hwdep_info_get_name(&info));
149 *res = strdup(snd_pcm_info_get_name(&info));
161 *res = strdup(snd_rawmidi_info_get_name(&info));
172 char *str1, *str2, *res;
187 res = malloc(strlen(list->cardname) + strlen(str2) + 3);
188 if (res != NULL) {
189 strcpy(res, list->cardname);
190 strcat(res, ", ");
191 strcat(res, str2);
194 res = malloc(strlen(list->cardname) + strlen(str2) + strlen(str1) + 6);
195 if (res != NULL) {
196 strcpy(res, list->cardname);
197 strcat(res, ", ");
198 strcat(res, str2);
199 strcat(res, " / ");
200 strcat(res, str1);
205 return res;
213 res = malloc(strlen(list->cardname) + strlen(str1) + 19);
214 if (res == NULL) {
218 strcpy(res, list->cardname);
219 strcat(res, ", ");
220 strcat(res, str1);
221 strcat(res, "|IOID");
222 strcat(res, str2);
224 return res;
243 snd_config_t *res = NULL, *cfg, *cfg1, *n;
270 err = snd_config_search_definition(config, base, buf, &res);
276 if (snd_config_get_type(res) != SND_CONFIG_TYPE_COMPOUND)
278 if (snd_config_search(res, "type", NULL) < 0)
286 snd_config_save(res, out);
292 cfg1 = res;
365 snd_config_delete(res);
366 res = NULL;
373 err = snd_config_search_alias_hooks(config, base, buf, &res);
377 if (snd_config_search(res, "@args", &cfg) >= 0) {
423 if (res && cleanup_res)
424 snd_config_delete(res);
715 char *res;
731 res = malloc(size + 1);
732 if (res != NULL) {
733 memcpy(res, hint1 + 4, size);
734 res[size] = '\0';
736 return res;