Lines Matching defs:res
87 static int get_dev_name1(struct hint_list *list, char **res, int device,
90 *res = NULL;
102 *res = strdup(snd_hwdep_info_get_name(info));
122 *res = strdup(snd_pcm_info_get_name(info));
135 *res = strdup(snd_rawmidi_info_get_name(info));
146 char *str1, *str2, *res;
161 res = malloc(strlen(list->cardname) + strlen(str2) + 3);
162 if (res != NULL) {
163 strcpy(res, list->cardname);
164 strcat(res, ", ");
165 strcat(res, str2);
168 res = malloc(strlen(list->cardname) + strlen(str2) + strlen(str1) + 6);
169 if (res != NULL) {
170 strcpy(res, list->cardname);
171 strcat(res, ", ");
172 strcat(res, str2);
173 strcat(res, " / ");
174 strcat(res, str1);
179 return res;
187 res = malloc(strlen(list->cardname) + strlen(str1) + 19);
188 if (res == NULL) {
192 strcpy(res, list->cardname);
193 strcat(res, ", ");
194 strcat(res, str1);
195 strcat(res, "|IOID");
196 strcat(res, str2);
198 return res;
216 snd_config_t *res = NULL, *cfg, *cfg1, *n;
244 err = snd_config_search_definition(snd_config, base, buf, &res);
250 if (snd_config_get_type(res) != SND_CONFIG_TYPE_COMPOUND)
252 if (snd_config_search(res, "type", NULL) < 0)
260 snd_config_save(res, out);
266 cfg1 = res;
333 snd_config_delete(res);
334 res = NULL;
342 err = snd_config_search_alias_hooks(snd_config, base, buf, &res);
346 if (snd_config_search(res, "@args", &cfg) >= 0) {
385 if (res && cleanup_res)
386 snd_config_delete(res);
669 char *res;
685 res = malloc(size + 1);
686 if (res != NULL) {
687 memcpy(res, hint1 + 4, size);
688 res[size] = '\0';
690 return res;