• Home
  • Raw
  • Download

Lines Matching refs:err

121 	int err;  in snd_config_get_bool()  local
123 err = snd_config_get_id(conf, &id); in snd_config_get_bool()
124 if (err < 0) in snd_config_get_bool()
125 return err; in snd_config_get_bool()
126 err = snd_config_get_integer(conf, &v); in snd_config_get_bool()
127 if (err >= 0) { in snd_config_get_bool()
135 err = snd_config_get_string(conf, &str); in snd_config_get_bool()
136 if (err < 0) { in snd_config_get_bool()
140 err = snd_config_get_bool_ascii(str); in snd_config_get_bool()
141 if (err < 0) in snd_config_get_bool()
143 return err; in snd_config_get_bool()
155 int err; in snd_config_get_card() local
163 err = snd_card_get_index(str); in snd_config_get_card()
164 if (err < 0) { in snd_config_get_card()
166 return err; in snd_config_get_card()
168 v = err; in snd_config_get_card()
207 int err; in snd_config_get_ctl_iface() local
209 err = snd_config_get_id(conf, &id); in snd_config_get_ctl_iface()
210 if (err < 0) in snd_config_get_ctl_iface()
211 return err; in snd_config_get_ctl_iface()
212 err = snd_config_get_integer(conf, &v); in snd_config_get_ctl_iface()
213 if (err >= 0) { in snd_config_get_ctl_iface()
221 err = snd_config_get_string(conf, &str); in snd_config_get_ctl_iface()
222 if (err < 0) { in snd_config_get_ctl_iface()
226 err = snd_config_get_ctl_iface_ascii(str); in snd_config_get_ctl_iface()
227 if (err < 0) in snd_config_get_ctl_iface()
229 return err; in snd_config_get_ctl_iface()
262 int idx = 0, err, hit; in snd_func_getenv() local
264 err = snd_config_search(src, "vars", &n); in snd_func_getenv()
265 if (err < 0) { in snd_func_getenv()
269 err = snd_config_evaluate(n, root, private_data, NULL); in snd_func_getenv()
270 if (err < 0) { in snd_func_getenv()
274 err = snd_config_search(src, "default", &d); in snd_func_getenv()
275 if (err < 0) { in snd_func_getenv()
279 err = snd_config_evaluate(d, root, private_data, NULL); in snd_func_getenv()
280 if (err < 0) { in snd_func_getenv()
284 err = snd_config_get_ascii(d, &def); in snd_func_getenv()
285 if (err < 0) { in snd_func_getenv()
299 err = -EINVAL; in snd_func_getenv()
302 err = safe_strtol(id, &i); in snd_func_getenv()
303 if (err < 0) { in snd_func_getenv()
305 err = -EINVAL; in snd_func_getenv()
310 err = snd_config_get_string(n, &ptr); in snd_func_getenv()
311 if (err < 0) { in snd_func_getenv()
313 err = -EINVAL; in snd_func_getenv()
325 err = snd_config_get_id(src, &id); in snd_func_getenv()
326 if (err >= 0) in snd_func_getenv()
327 err = snd_config_imake_string(dst, id, res); in snd_func_getenv()
330 return err; in snd_func_getenv()
360 int err; in snd_func_igetenv() local
363 err = snd_func_getenv(&d, root, src, private_data); in snd_func_igetenv()
364 if (err < 0) in snd_func_igetenv()
365 return err; in snd_func_igetenv()
366 err = snd_config_get_string(d, &str); in snd_func_igetenv()
367 if (err < 0) { in snd_func_igetenv()
369 return err; in snd_func_igetenv()
371 err = safe_strtol(str, &v); in snd_func_igetenv()
372 if (err < 0) { in snd_func_igetenv()
374 return err; in snd_func_igetenv()
377 err = snd_config_get_id(src, &id); in snd_func_igetenv()
378 if (err < 0) in snd_func_igetenv()
379 return err; in snd_func_igetenv()
380 err = snd_config_imake_integer(dst, id, v); in snd_func_igetenv()
381 if (err < 0) in snd_func_igetenv()
382 return err; in snd_func_igetenv()
413 int idx = 0, len = 0, len1, err, hit; in snd_func_concat() local
415 err = snd_config_search(src, "strings", &n); in snd_func_concat()
416 if (err < 0) { in snd_func_concat()
420 err = snd_config_evaluate(n, root, private_data, NULL); in snd_func_concat()
421 if (err < 0) { in snd_func_concat()
434 err = safe_strtol(id, &i); in snd_func_concat()
435 if (err < 0) { in snd_func_concat()
437 err = -EINVAL; in snd_func_concat()
442 err = snd_config_get_ascii(n, &ptr); in snd_func_concat()
443 if (err < 0) { in snd_func_concat()
445 err = -EINVAL; in snd_func_concat()
452 err = -ENOMEM; in snd_func_concat()
466 err = -EINVAL; in snd_func_concat()
469 err = snd_config_get_id(src, &id); in snd_func_concat()
470 if (err >= 0) in snd_func_concat()
471 err = snd_config_imake_string(dst, id, res); in snd_func_concat()
474 return err; in snd_func_concat()
492 int idx = 0, err, hit; in snd_func_iops() local
494 err = snd_config_search(src, "integers", &n); in snd_func_iops()
495 if (err < 0) { in snd_func_iops()
499 err = snd_config_evaluate(n, root, private_data, NULL); in snd_func_iops()
500 if (err < 0) { in snd_func_iops()
512 err = safe_strtol(id, &i); in snd_func_iops()
513 if (err < 0) { in snd_func_iops()
515 err = -EINVAL; in snd_func_iops()
520 err = snd_config_get_integer(n, &val); in snd_func_iops()
521 if (err < 0) { in snd_func_iops()
523 err = -EINVAL; in snd_func_iops()
534 err = snd_config_get_id(src, &id); in snd_func_iops()
535 if (err >= 0) in snd_func_iops()
536 err = snd_config_imake_integer(dst, id, result); in snd_func_iops()
539 return err; in snd_func_iops()
614 int err; in snd_func_datadir() local
617 err = snd_config_get_id(src, &id); in snd_func_datadir()
618 if (err < 0) in snd_func_datadir()
619 return err; in snd_func_datadir()
651 int err; in _snd_func_private_data() local
656 err = snd_config_search(*private_data, id, private_data); in _snd_func_private_data()
657 if (err) in _snd_func_private_data()
660 err = snd_config_test_id(*private_data, id); in _snd_func_private_data()
661 if (err) { in _snd_func_private_data()
690 int err; in snd_func_private_string() local
693 err = _snd_func_private_data(dst, src, &private_data, "string"); in snd_func_private_string()
694 if (err) in snd_func_private_string()
695 return err; in snd_func_private_string()
696 err = snd_config_get_string(private_data, &str); in snd_func_private_string()
697 if (err < 0) { in snd_func_private_string()
699 return err; in snd_func_private_string()
701 err = snd_config_get_id(src, &id); in snd_func_private_string()
702 if (err >= 0) in snd_func_private_string()
703 err = snd_config_imake_string(dst, id, str); in snd_func_private_string()
704 return err; in snd_func_private_string()
730 int err; in snd_func_private_integer() local
734 err = _snd_func_private_data(dst, src, &private_data, "integer"); in snd_func_private_integer()
735 if (err) in snd_func_private_integer()
736 return err; in snd_func_private_integer()
737 err = snd_config_get_integer(private_data, &val); in snd_func_private_integer()
738 if (err < 0) { in snd_func_private_integer()
740 return err; in snd_func_private_integer()
742 err = snd_config_get_id(src, &id); in snd_func_private_integer()
743 if (err >= 0) in snd_func_private_integer()
744 err = snd_config_imake_integer(dst, id, val); in snd_func_private_integer()
745 return err; in snd_func_private_integer()
757 int err; in snd_determine_driver() local
760 err = open_ctl(card, &ctl); in snd_determine_driver()
761 if (err < 0) { in snd_determine_driver()
765 err = snd_ctl_card_info(ctl, &info); in snd_determine_driver()
766 if (err < 0) { in snd_determine_driver()
767 SNDERR("snd_ctl_card_info error: %s", snd_strerror(err)); in snd_determine_driver()
772 err = -ENOMEM; in snd_determine_driver()
775 err = 0; in snd_determine_driver()
780 return err; in snd_determine_driver()
806 int err; in snd_func_private_card_driver() local
809 err = snd_config_test_id(private_data, "card"); in snd_func_private_card_driver()
810 if (err) { in snd_func_private_card_driver()
814 err = snd_config_get_integer(private_data, &card); in snd_func_private_card_driver()
815 if (err < 0) { in snd_func_private_card_driver()
817 return err; in snd_func_private_card_driver()
819 if ((err = snd_determine_driver(card, &driver)) < 0) in snd_func_private_card_driver()
820 return err; in snd_func_private_card_driver()
821 err = snd_config_get_id(src, &id); in snd_func_private_card_driver()
822 if (err >= 0) in snd_func_private_card_driver()
823 err = snd_config_imake_string(dst, id, driver); in snd_func_private_card_driver()
825 return err; in snd_func_private_card_driver()
836 int card, err; in parse_card() local
838 err = snd_config_search(src, "card", &n); in parse_card()
839 if (err < 0) { in parse_card()
841 return err; in parse_card()
843 err = snd_config_evaluate(n, root, private_data, NULL); in parse_card()
844 if (err < 0) { in parse_card()
846 return err; in parse_card()
848 err = snd_config_get_ascii(n, &str); in parse_card()
849 if (err < 0) { in parse_card()
851 return err; in parse_card()
881 int card, err; in snd_func_card_inum() local
886 err = snd_config_get_id(src, &id); in snd_func_card_inum()
887 if (err >= 0) in snd_func_card_inum()
888 err = snd_config_imake_integer(dst, id, card); in snd_func_card_inum()
889 return err; in snd_func_card_inum()
916 int card, err; in snd_func_card_driver() local
921 err = snd_config_imake_integer(&val, "card", card); in snd_func_card_driver()
922 if (err < 0) in snd_func_card_driver()
923 return err; in snd_func_card_driver()
924 err = snd_func_private_card_driver(dst, root, src, val); in snd_func_card_driver()
926 return err; in snd_func_card_driver()
955 int card, err; in snd_func_card_id() local
960 err = open_ctl(card, &ctl); in snd_func_card_id()
961 if (err < 0) { in snd_func_card_id()
965 err = snd_ctl_card_info(ctl, &info); in snd_func_card_id()
966 if (err < 0) { in snd_func_card_id()
967 SNDERR("snd_ctl_card_info error: %s", snd_strerror(err)); in snd_func_card_id()
970 err = snd_config_get_id(src, &id); in snd_func_card_id()
971 if (err >= 0) in snd_func_card_id()
972 err = snd_config_imake_string(dst, id, in snd_func_card_id()
977 return err; in snd_func_card_id()
1006 int card, err; in snd_func_card_name() local
1011 err = open_ctl(card, &ctl); in snd_func_card_name()
1012 if (err < 0) { in snd_func_card_name()
1016 err = snd_ctl_card_info(ctl, &info); in snd_func_card_name()
1017 if (err < 0) { in snd_func_card_name()
1018 SNDERR("snd_ctl_card_info error: %s", snd_strerror(err)); in snd_func_card_name()
1021 err = snd_config_get_id(src, &id); in snd_func_card_name()
1022 if (err >= 0) in snd_func_card_name()
1023 err = snd_config_imake_safe_string(dst, id, in snd_func_card_name()
1028 return err; in snd_func_card_name()
1063 int err; in snd_func_pcm_id() local
1068 err = snd_config_search(src, "device", &n); in snd_func_pcm_id()
1069 if (err < 0) { in snd_func_pcm_id()
1073 err = snd_config_evaluate(n, root, private_data, NULL); in snd_func_pcm_id()
1074 if (err < 0) { in snd_func_pcm_id()
1078 err = snd_config_get_integer(n, &device); in snd_func_pcm_id()
1079 if (err < 0) { in snd_func_pcm_id()
1084 err = snd_config_evaluate(n, root, private_data, NULL); in snd_func_pcm_id()
1085 if (err < 0) { in snd_func_pcm_id()
1089 err = snd_config_get_integer(n, &subdevice); in snd_func_pcm_id()
1090 if (err < 0) { in snd_func_pcm_id()
1095 err = open_ctl(card, &ctl); in snd_func_pcm_id()
1096 if (err < 0) { in snd_func_pcm_id()
1102 err = snd_ctl_pcm_info(ctl, &info); in snd_func_pcm_id()
1103 if (err < 0) { in snd_func_pcm_id()
1104 SNDERR("snd_ctl_pcm_info error: %s", snd_strerror(err)); in snd_func_pcm_id()
1107 err = snd_config_get_id(src, &id); in snd_func_pcm_id()
1108 if (err >= 0) in snd_func_pcm_id()
1109 err = snd_config_imake_string(dst, id, in snd_func_pcm_id()
1114 return err; in snd_func_pcm_id()
1149 int err; in snd_func_pcm_args_by_class() local
1151 err = snd_config_search(src, "class", &n); in snd_func_pcm_args_by_class()
1152 if (err < 0) { in snd_func_pcm_args_by_class()
1156 err = snd_config_evaluate(n, root, private_data, NULL); in snd_func_pcm_args_by_class()
1157 if (err < 0) { in snd_func_pcm_args_by_class()
1161 err = snd_config_get_integer(n, &class); in snd_func_pcm_args_by_class()
1162 if (err < 0) { in snd_func_pcm_args_by_class()
1166 err = snd_config_search(src, "index", &n); in snd_func_pcm_args_by_class()
1167 if (err < 0) { in snd_func_pcm_args_by_class()
1171 err = snd_config_evaluate(n, root, private_data, NULL); in snd_func_pcm_args_by_class()
1172 if (err < 0) { in snd_func_pcm_args_by_class()
1176 err = snd_config_get_integer(n, &index); in snd_func_pcm_args_by_class()
1177 if (err < 0) { in snd_func_pcm_args_by_class()
1183 err = snd_card_next(&card); in snd_func_pcm_args_by_class()
1184 if (err < 0) { in snd_func_pcm_args_by_class()
1190 err = open_ctl(card, &ctl); in snd_func_pcm_args_by_class()
1191 if (err < 0) { in snd_func_pcm_args_by_class()
1197 err = snd_ctl_pcm_next_device(ctl, &dev); in snd_func_pcm_args_by_class()
1198 if (err < 0) { in snd_func_pcm_args_by_class()
1205 err = snd_ctl_pcm_info(ctl, &info); in snd_func_pcm_args_by_class()
1206 if (err < 0) in snd_func_pcm_args_by_class()
1215 err = -ENODEV; in snd_func_pcm_args_by_class()
1220 if (err < 0) in snd_func_pcm_args_by_class()
1221 return err; in snd_func_pcm_args_by_class()
1222 if((err = snd_config_get_id(src, &id)) >= 0) { in snd_func_pcm_args_by_class()
1225 err = snd_config_imake_string(dst, id, name); in snd_func_pcm_args_by_class()
1227 return err; in snd_func_pcm_args_by_class()
1257 int err; in snd_func_private_pcm_subdevice() local
1261 err = snd_config_test_id(private_data, "pcm_handle"); in snd_func_private_pcm_subdevice()
1262 if (err) { in snd_func_private_pcm_subdevice()
1266 err = snd_config_get_pointer(private_data, &data); in snd_func_private_pcm_subdevice()
1268 if (err < 0) { in snd_func_private_pcm_subdevice()
1270 return err; in snd_func_private_pcm_subdevice()
1272 err = snd_pcm_info(pcm, &info); in snd_func_private_pcm_subdevice()
1273 if (err < 0) { in snd_func_private_pcm_subdevice()
1274 SNDERR("snd_ctl_pcm_info error: %s", snd_strerror(err)); in snd_func_private_pcm_subdevice()
1275 return err; in snd_func_private_pcm_subdevice()
1277 err = snd_config_get_id(src, &id); in snd_func_private_pcm_subdevice()
1278 if (err >= 0) in snd_func_private_pcm_subdevice()
1279 err = snd_config_imake_integer(dst, id, in snd_func_private_pcm_subdevice()
1281 return err; in snd_func_private_pcm_subdevice()
1315 int err; in snd_func_refer() local
1317 err = snd_config_search(src, "file", &n); in snd_func_refer()
1318 if (err >= 0) { in snd_func_refer()
1319 err = snd_config_evaluate(n, root, private_data, NULL); in snd_func_refer()
1320 if (err < 0) { in snd_func_refer()
1324 err = snd_config_get_string(n, &file); in snd_func_refer()
1325 if (err < 0) { in snd_func_refer()
1330 err = snd_config_search(src, "name", &n); in snd_func_refer()
1331 if (err >= 0) { in snd_func_refer()
1332 err = snd_config_evaluate(n, root, private_data, NULL); in snd_func_refer()
1333 if (err < 0) { in snd_func_refer()
1337 err = snd_config_get_string(n, &name); in snd_func_refer()
1338 if (err < 0) { in snd_func_refer()
1344 err = -EINVAL; in snd_func_refer()
1350 err = snd_input_stdio_open(&input, file, "r"); in snd_func_refer()
1351 if (err < 0) { in snd_func_refer()
1352 SNDERR("Unable to open file %s: %s", file, snd_strerror(err)); in snd_func_refer()
1355 err = snd_config_load(root, input); in snd_func_refer()
1357 if (err < 0) in snd_func_refer()
1360 err = snd_config_search_definition(root, NULL, name, dst); in snd_func_refer()
1361 if (err >= 0) { in snd_func_refer()
1363 err = snd_config_get_id(src, &id); in snd_func_refer()
1364 if (err >= 0) in snd_func_refer()
1365 err = snd_config_set_id(*dst, id); in snd_func_refer()
1367 err = snd_config_search(src, "default", &n); in snd_func_refer()
1368 if (err < 0) in snd_func_refer()
1372 err = snd_config_evaluate(n, root, private_data, NULL); in snd_func_refer()
1373 if (err < 0) in snd_func_refer()
1374 return err; in snd_func_refer()
1375 if ((err = snd_config_copy(dst, n)) >= 0) { in snd_func_refer()
1376 if ((err = snd_config_get_id(src, &id)) < 0 || in snd_func_refer()
1377 (err = snd_config_set_id(*dst, id)) < 0) in snd_func_refer()
1383 return err; in snd_func_refer()