Lines Matching full:result

228 	int result;  in cmd_micp_mic_ctlr_discover()  local
234 result = bt_micp_mic_ctlr_cb_register(&micp_cbs); in cmd_micp_mic_ctlr_discover()
235 if (result != 0) { in cmd_micp_mic_ctlr_discover()
236 shell_print(sh, "Failed to register callbacks: %d", result); in cmd_micp_mic_ctlr_discover()
243 result = bt_micp_mic_ctlr_discover(default_conn, &micp_mic_ctlr); in cmd_micp_mic_ctlr_discover()
244 if (result != 0) { in cmd_micp_mic_ctlr_discover()
245 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_discover()
248 return result; in cmd_micp_mic_ctlr_discover()
254 int result; in cmd_micp_mic_ctlr_mute_get() local
260 result = bt_micp_mic_ctlr_mute_get(micp_mic_ctlr); in cmd_micp_mic_ctlr_mute_get()
262 if (result != 0) { in cmd_micp_mic_ctlr_mute_get()
263 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_mute_get()
266 return result; in cmd_micp_mic_ctlr_mute_get()
272 int result; in cmd_micp_mic_ctlr_mute() local
278 result = bt_micp_mic_ctlr_mute(micp_mic_ctlr); in cmd_micp_mic_ctlr_mute()
280 if (result != 0) { in cmd_micp_mic_ctlr_mute()
281 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_mute()
284 return result; in cmd_micp_mic_ctlr_mute()
290 int result; in cmd_micp_mic_ctlr_unmute() local
296 result = bt_micp_mic_ctlr_unmute(micp_mic_ctlr); in cmd_micp_mic_ctlr_unmute()
298 if (result != 0) { in cmd_micp_mic_ctlr_unmute()
299 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_unmute()
302 return result; in cmd_micp_mic_ctlr_unmute()
310 int result = 0; in cmd_micp_mic_ctlr_aics_input_state_get() local
312 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_input_state_get()
313 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_state_get()
314 shell_error(sh, "Could not parse index: %d", result); in cmd_micp_mic_ctlr_aics_input_state_get()
330 result = bt_aics_state_get(micp_included.aics[index]); in cmd_micp_mic_ctlr_aics_input_state_get()
331 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_state_get()
332 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_aics_input_state_get()
335 return result; in cmd_micp_mic_ctlr_aics_input_state_get()
342 int result = 0; in cmd_micp_mic_ctlr_aics_gain_setting_get() local
344 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_gain_setting_get()
345 if (result != 0) { in cmd_micp_mic_ctlr_aics_gain_setting_get()
346 shell_error(sh, "Could not parse index: %d", result); in cmd_micp_mic_ctlr_aics_gain_setting_get()
362 result = bt_aics_gain_setting_get(micp_included.aics[index]); in cmd_micp_mic_ctlr_aics_gain_setting_get()
363 if (result != 0) { in cmd_micp_mic_ctlr_aics_gain_setting_get()
364 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_aics_gain_setting_get()
367 return result; in cmd_micp_mic_ctlr_aics_gain_setting_get()
374 int result = 0; in cmd_micp_mic_ctlr_aics_input_type_get() local
376 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_input_type_get()
377 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_type_get()
378 shell_error(sh, "Could not parse index: %d", result); in cmd_micp_mic_ctlr_aics_input_type_get()
394 result = bt_aics_type_get(micp_included.aics[index]); in cmd_micp_mic_ctlr_aics_input_type_get()
395 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_type_get()
396 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_aics_input_type_get()
399 return result; in cmd_micp_mic_ctlr_aics_input_type_get()
406 int result = 0; in cmd_micp_mic_ctlr_aics_input_status_get() local
408 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_input_status_get()
409 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_status_get()
410 shell_error(sh, "Could not parse index: %d", result); in cmd_micp_mic_ctlr_aics_input_status_get()
426 result = bt_aics_status_get(micp_included.aics[index]); in cmd_micp_mic_ctlr_aics_input_status_get()
427 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_status_get()
428 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_aics_input_status_get()
431 return result; in cmd_micp_mic_ctlr_aics_input_status_get()
438 int result = 0; in cmd_micp_mic_ctlr_aics_input_unmute() local
440 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_input_unmute()
441 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_unmute()
442 shell_error(sh, "Could not parse index: %d", result); in cmd_micp_mic_ctlr_aics_input_unmute()
454 result = bt_aics_unmute(micp_included.aics[index]); in cmd_micp_mic_ctlr_aics_input_unmute()
455 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_unmute()
456 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_aics_input_unmute()
459 return result; in cmd_micp_mic_ctlr_aics_input_unmute()
466 int result = 0; in cmd_micp_mic_ctlr_aics_input_mute() local
468 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_input_mute()
469 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_mute()
470 shell_error(sh, "Could not parse index: %d", result); in cmd_micp_mic_ctlr_aics_input_mute()
486 result = bt_aics_mute(micp_included.aics[index]); in cmd_micp_mic_ctlr_aics_input_mute()
487 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_mute()
488 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_aics_input_mute()
491 return result; in cmd_micp_mic_ctlr_aics_input_mute()
498 int result = 0; in cmd_micp_mic_ctlr_aics_manual_input_gain_set() local
500 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_manual_input_gain_set()
501 if (result != 0) { in cmd_micp_mic_ctlr_aics_manual_input_gain_set()
502 shell_error(sh, "Could not parse index: %d", result); in cmd_micp_mic_ctlr_aics_manual_input_gain_set()
518 result = bt_aics_manual_gain_set(micp_included.aics[index]); in cmd_micp_mic_ctlr_aics_manual_input_gain_set()
519 if (result != 0) { in cmd_micp_mic_ctlr_aics_manual_input_gain_set()
520 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_aics_manual_input_gain_set()
523 return result; in cmd_micp_mic_ctlr_aics_manual_input_gain_set()
531 int result = 0; in cmd_micp_mic_ctlr_aics_automatic_input_gain_set() local
533 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_automatic_input_gain_set()
534 if (result != 0) { in cmd_micp_mic_ctlr_aics_automatic_input_gain_set()
535 shell_error(sh, "Could not parse index: %d", result); in cmd_micp_mic_ctlr_aics_automatic_input_gain_set()
551 result = bt_aics_automatic_gain_set(micp_included.aics[index]); in cmd_micp_mic_ctlr_aics_automatic_input_gain_set()
552 if (result != 0) { in cmd_micp_mic_ctlr_aics_automatic_input_gain_set()
553 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_aics_automatic_input_gain_set()
556 return result; in cmd_micp_mic_ctlr_aics_automatic_input_gain_set()
563 int result = 0; in cmd_micp_mic_ctlr_aics_gain_set() local
566 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_gain_set()
567 if (result != 0) { in cmd_micp_mic_ctlr_aics_gain_set()
568 shell_error(sh, "Could not parse index: %d", result); in cmd_micp_mic_ctlr_aics_gain_set()
580 gain = shell_strtol(argv[2], 0, &result); in cmd_micp_mic_ctlr_aics_gain_set()
581 if (result != 0) { in cmd_micp_mic_ctlr_aics_gain_set()
582 shell_error(sh, "Could not parse gain: %d", result); in cmd_micp_mic_ctlr_aics_gain_set()
598 result = bt_aics_gain_set(micp_included.aics[index], gain); in cmd_micp_mic_ctlr_aics_gain_set()
599 if (result != 0) { in cmd_micp_mic_ctlr_aics_gain_set()
600 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_aics_gain_set()
603 return result; in cmd_micp_mic_ctlr_aics_gain_set()
610 int result = 0; in cmd_micp_mic_ctlr_aics_input_description_get() local
612 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_input_description_get()
613 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_description_get()
614 shell_error(sh, "Could not parse index: %d", result); in cmd_micp_mic_ctlr_aics_input_description_get()
630 result = bt_aics_description_get(micp_included.aics[index]); in cmd_micp_mic_ctlr_aics_input_description_get()
631 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_description_get()
632 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_aics_input_description_get()
635 return result; in cmd_micp_mic_ctlr_aics_input_description_get()
642 int result = 0; in cmd_micp_mic_ctlr_aics_input_description_set() local
644 index = shell_strtoul(argv[1], 0, &result); in cmd_micp_mic_ctlr_aics_input_description_set()
645 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_description_set()
646 shell_error(sh, "Could not parse index: %d", result); in cmd_micp_mic_ctlr_aics_input_description_set()
662 result = bt_aics_description_set(micp_included.aics[index], argv[2]); in cmd_micp_mic_ctlr_aics_input_description_set()
663 if (result != 0) { in cmd_micp_mic_ctlr_aics_input_description_set()
664 shell_print(sh, "Fail: %d", result); in cmd_micp_mic_ctlr_aics_input_description_set()
667 return result; in cmd_micp_mic_ctlr_aics_input_description_set()