Lines Matching defs:err

117 	int err, type;
122 err = snd_config_get_integer(n, &lval);
123 if (err < 0)
124 return err;
129 err = snd_config_get_integer64(n, &llval);
130 if (err < 0)
131 return err;
138 err = tplg_nice_value_format(buf, sizeof(buf), (unsigned int)lval);
139 if (err < 0)
140 return err;
306 int type, err, quoted, array;
316 err = tplg_pprint_integer(src, &val);
318 err = snd_config_get_ascii(src, &val);
320 if (err < 0)
321 return err;
326 err = tplg_save_printf(dst, NULL, "\n");
327 if (err < 0)
330 err = tplg_save_printf(dst, NULL, "\t");
331 if (err < 0)
336 err = tplg_save_printf(dst, NULL, "%s'%s'\n", delim, val);
338 err = tplg_save_printf(dst, NULL, "%s%s\n", delim, val);
342 return err;
351 err = snd_config_get_id(s, &id);
352 if (err < 0)
353 return err;
362 err = snd_config_get_id(s, &id);
363 if (err >= 0 && level > 0)
364 err = tplg_save_printf(dst, NULL, ".");
365 if (err >= 0)
366 err = tplg_save_string(dst, id, 1);
367 if (err >= 0)
368 err = save_config(dst, level, " ", s);
369 return err;
377 err = tplg_save_printf(dst, NULL, "%s%s\n", delim,
379 if (err < 0)
380 return err;
386 err = snd_config_get_id(s, &id);
387 if (err < 0)
388 return err;
389 err = tplg_save_printf(dst, pfx, "");
390 if (err < 0)
391 return err;
395 err = tplg_save_quoted(dst, id);
397 err = tplg_save_string(dst, id, 1);
399 if (err < 0)
400 return err;
404 err = save_config(dst, level + 1, delim, s);
405 if (err < 0)
406 return err;
411 err = tplg_save_printf(dst, pfx, "%s\n",
413 if (err < 0)
414 return err;
428 int err, count;
446 err = -ENXIO;
457 err = tplg_save_printf(dst, prefix, "%s {\n",
461 err = tplg_save_printf(dst, prefix, "%s.",
466 if (err < 0)
474 err = tplg_save_printf(dst, pfx2, "");
475 if (err < 0)
478 err = tptr->save(tplg, elem, dst, count > 1 ? pfx2 : prefix);
479 if (err < 0) {
481 tptr->id, snd_strerror(-err));
486 err = tplg_save_printf(dst, prefix, "}\n");
487 if (err < 0)
496 err = tptr->gsave(tplg, gindex, dst, prefix);
497 if (err < 0)
505 return err;
563 int err;
572 err = tplg_index_groups(tplg, &indexes);
573 if (err < 0)
574 return err;
575 for (a = indexes; err >= 0 && *a >= 0; a++) {
576 err = tplg_save_printf(&buf, NULL,
579 if (err >= 0)
580 err = tplg_save(tplg, &buf, *a, "\t");
581 if (err >= 0)
582 err = tplg_save_printf(&buf, NULL, "}\n");
586 err = tplg_save(tplg, &buf, -1, NULL);
589 if (err < 0)
593 err = -EINVAL;
603 err = snd_input_buffer_open(&in, buf.dst, strlen(buf.dst));
604 if (err < 0) {
609 err = snd_config_top(&top);
610 if (err < 0) {
615 err = snd_config_load(top, in);
617 if (err < 0) {
628 err = -EINVAL;
636 err = save_config(&buf2, 0, NULL, top);
638 if (err < 0) {
650 return err;