Lines Matching refs:err
163 int err, i; in process_cmd() local
206 err = snd_use_case_mgr_open(&uc_mgr, identifier); in process_cmd()
207 if (err < 0) { in process_cmd()
208 … fprintf(stderr, "%s: error failed to open sound card %s: %d\n", cmd->cmd_str, identifier, err); in process_cmd()
209 return err; in process_cmd()
215 err = snd_use_case_card_list(&list); in process_cmd()
216 if (err < 0) { in process_cmd()
217 fprintf(stderr, "%s: error failed to get card list: %d\n", cmd->cmd_str, err); in process_cmd()
218 return err; in process_cmd()
220 if (err == 0) { in process_cmd()
225 for (i = 0; i < err; i++) in process_cmd()
227 snd_use_case_free_list(list, err); in process_cmd()
236 err = snd_use_case_mgr_reset(uc_mgr); in process_cmd()
237 if (err < 0) { in process_cmd()
238 fprintf(stderr, "%s: error failed to reset sound card %d\n", cmd->cmd_str, err); in process_cmd()
239 return err; in process_cmd()
249 err = snd_use_case_mgr_reload(uc_mgr); in process_cmd()
250 if (err < 0) { in process_cmd()
251 fprintf(stderr, "%s: error failed to reload manager %d\n", cmd->cmd_str, err); in process_cmd()
252 return err; in process_cmd()
262 err = snd_use_case_get_list(uc_mgr, identifier, &list); in process_cmd()
263 if (err < 0) { in process_cmd()
264 fprintf(stderr, "%s: error failed to get list %s: %d\n", cmd->cmd_str, identifier, err); in process_cmd()
265 return err; in process_cmd()
267 if (err == 0) { in process_cmd()
271 for (i = 0; i < err; i++) { in process_cmd()
274 snd_use_case_free_list(list, err); in process_cmd()
283 err = snd_use_case_set(uc_mgr, identifier, value); in process_cmd()
284 if (err < 0) { in process_cmd()
285 … fprintf(stderr, "%s: error failed to set %s=%s: %d\n", cmd->cmd_str, identifier, value, err); in process_cmd()
286 return err; in process_cmd()
296 err = snd_use_case_get(uc_mgr, identifier, &str); in process_cmd()
297 if (err < 0) { in process_cmd()
298 fprintf(stderr, "%s: error failed to get %s: %d\n", cmd->cmd_str, identifier, err); in process_cmd()
299 return err; in process_cmd()
311 err = snd_use_case_geti(uc_mgr, identifier, &lval); in process_cmd()
312 if (err < 0) { in process_cmd()
313 … fprintf(stderr, "%s: error failed to get integer %s: %d\n", cmd->cmd_str, identifier, err); in process_cmd()