Lines Matching refs:result

328 	int result;  in cmd_vcs_client_discover()  local
334 result = bt_vcs_client_cb_register(&vcs_cbs); in cmd_vcs_client_discover()
335 if (result != 0) { in cmd_vcs_client_discover()
336 shell_print(sh, "CB register failed: %d", result); in cmd_vcs_client_discover()
337 return result; in cmd_vcs_client_discover()
345 result = bt_vcs_discover(default_conn, &vcs); in cmd_vcs_client_discover()
346 if (result != 0) { in cmd_vcs_client_discover()
347 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_discover()
350 return result; in cmd_vcs_client_discover()
356 int result; in cmd_vcs_client_state_get() local
363 result = bt_vcs_vol_get(vcs); in cmd_vcs_client_state_get()
364 if (result != 0) { in cmd_vcs_client_state_get()
365 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_state_get()
368 return result; in cmd_vcs_client_state_get()
374 int result; in cmd_vcs_client_flags_get() local
381 result = bt_vcs_flags_get(vcs); in cmd_vcs_client_flags_get()
382 if (result != 0) { in cmd_vcs_client_flags_get()
383 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_flags_get()
386 return result; in cmd_vcs_client_flags_get()
392 int result; in cmd_vcs_client_volume_down() local
399 result = bt_vcs_vol_down(vcs); in cmd_vcs_client_volume_down()
400 if (result != 0) { in cmd_vcs_client_volume_down()
401 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_volume_down()
404 return result; in cmd_vcs_client_volume_down()
411 int result; in cmd_vcs_client_volume_up() local
418 result = bt_vcs_vol_up(vcs); in cmd_vcs_client_volume_up()
419 if (result != 0) { in cmd_vcs_client_volume_up()
420 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_volume_up()
423 return result; in cmd_vcs_client_volume_up()
429 int result; in cmd_vcs_client_unmute_volume_down() local
436 result = bt_vcs_unmute_vol_down(vcs); in cmd_vcs_client_unmute_volume_down()
437 if (result != 0) { in cmd_vcs_client_unmute_volume_down()
438 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_unmute_volume_down()
441 return result; in cmd_vcs_client_unmute_volume_down()
447 int result; in cmd_vcs_client_unmute_volume_up() local
454 result = bt_vcs_unmute_vol_up(vcs); in cmd_vcs_client_unmute_volume_up()
455 if (result != 0) { in cmd_vcs_client_unmute_volume_up()
456 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_unmute_volume_up()
459 return result; in cmd_vcs_client_unmute_volume_up()
466 int result; in cmd_vcs_client_volume_set() local
479 result = bt_vcs_vol_set(vcs, volume); in cmd_vcs_client_volume_set()
480 if (result != 0) { in cmd_vcs_client_volume_set()
481 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_volume_set()
484 return result; in cmd_vcs_client_volume_set()
491 int result; in cmd_vcs_client_unmute() local
498 result = bt_vcs_unmute(vcs); in cmd_vcs_client_unmute()
499 if (result != 0) { in cmd_vcs_client_unmute()
500 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_unmute()
503 return result; in cmd_vcs_client_unmute()
508 int result; in cmd_vcs_client_mute() local
515 result = bt_vcs_mute(vcs); in cmd_vcs_client_mute()
516 if (result != 0) { in cmd_vcs_client_mute()
517 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_mute()
520 return result; in cmd_vcs_client_mute()
526 int result; in cmd_vcs_client_vocs_state_get() local
540 result = bt_vcs_vocs_state_get(vcs, vcs_included.vocs[index]); in cmd_vcs_client_vocs_state_get()
541 if (result != 0) { in cmd_vcs_client_vocs_state_get()
542 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_vocs_state_get()
545 return result; in cmd_vcs_client_vocs_state_get()
551 int result; in cmd_vcs_client_vocs_location_get() local
565 result = bt_vcs_vocs_location_get(vcs, vcs_included.vocs[index]); in cmd_vcs_client_vocs_location_get()
566 if (result != 0) { in cmd_vcs_client_vocs_location_get()
567 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_vocs_location_get()
570 return result; in cmd_vcs_client_vocs_location_get()
576 int result; in cmd_vcs_client_vocs_location_set() local
598 result = bt_vcs_vocs_location_set(vcs, vcs_included.vocs[index], in cmd_vcs_client_vocs_location_set()
600 if (result != 0) { in cmd_vcs_client_vocs_location_set()
601 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_vocs_location_set()
604 return result; in cmd_vcs_client_vocs_location_set()
610 int result; in cmd_vcs_client_vocs_offset_set() local
631 result = bt_vcs_vocs_state_set(vcs, vcs_included.vocs[index], in cmd_vcs_client_vocs_offset_set()
633 if (result != 0) { in cmd_vcs_client_vocs_offset_set()
634 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_vocs_offset_set()
637 return result; in cmd_vcs_client_vocs_offset_set()
643 int result; in cmd_vcs_client_vocs_output_description_get() local
657 result = bt_vcs_vocs_description_get(vcs, vcs_included.vocs[index]); in cmd_vcs_client_vocs_output_description_get()
658 if (result != 0) { in cmd_vcs_client_vocs_output_description_get()
659 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_vocs_output_description_get()
662 return result; in cmd_vcs_client_vocs_output_description_get()
668 int result; in cmd_vcs_client_vocs_output_description_set() local
683 result = bt_vcs_vocs_description_set(vcs, vcs_included.vocs[index], in cmd_vcs_client_vocs_output_description_set()
685 if (result != 0) { in cmd_vcs_client_vocs_output_description_set()
686 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_vocs_output_description_set()
689 return result; in cmd_vcs_client_vocs_output_description_set()
695 int result; in cmd_vcs_client_aics_input_state_get() local
709 result = bt_vcs_aics_state_get(vcs, vcs_included.aics[index]); in cmd_vcs_client_aics_input_state_get()
710 if (result != 0) { in cmd_vcs_client_aics_input_state_get()
711 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_aics_input_state_get()
714 return result; in cmd_vcs_client_aics_input_state_get()
720 int result; in cmd_vcs_client_aics_gain_setting_get() local
734 result = bt_vcs_aics_gain_setting_get(vcs, vcs_included.aics[index]); in cmd_vcs_client_aics_gain_setting_get()
735 if (result != 0) { in cmd_vcs_client_aics_gain_setting_get()
736 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_aics_gain_setting_get()
739 return result; in cmd_vcs_client_aics_gain_setting_get()
745 int result; in cmd_vcs_client_aics_input_type_get() local
759 result = bt_vcs_aics_type_get(vcs, vcs_included.aics[index]); in cmd_vcs_client_aics_input_type_get()
760 if (result != 0) { in cmd_vcs_client_aics_input_type_get()
761 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_aics_input_type_get()
764 return result; in cmd_vcs_client_aics_input_type_get()
770 int result; in cmd_vcs_client_aics_input_status_get() local
784 result = bt_vcs_aics_status_get(vcs, vcs_included.aics[index]); in cmd_vcs_client_aics_input_status_get()
785 if (result != 0) { in cmd_vcs_client_aics_input_status_get()
786 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_aics_input_status_get()
789 return result; in cmd_vcs_client_aics_input_status_get()
795 int result; in cmd_vcs_client_aics_input_unmute() local
809 result = bt_vcs_aics_unmute(vcs, vcs_included.aics[index]); in cmd_vcs_client_aics_input_unmute()
810 if (result != 0) { in cmd_vcs_client_aics_input_unmute()
811 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_aics_input_unmute()
814 return result; in cmd_vcs_client_aics_input_unmute()
820 int result; in cmd_vcs_client_aics_input_mute() local
834 result = bt_vcs_aics_mute(vcs, vcs_included.aics[index]); in cmd_vcs_client_aics_input_mute()
835 if (result != 0) { in cmd_vcs_client_aics_input_mute()
836 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_aics_input_mute()
839 return result; in cmd_vcs_client_aics_input_mute()
845 int result; in cmd_vcs_client_aics_manual_input_gain_set() local
859 result = bt_vcs_aics_manual_gain_set(vcs, vcs_included.aics[index]); in cmd_vcs_client_aics_manual_input_gain_set()
860 if (result != 0) { in cmd_vcs_client_aics_manual_input_gain_set()
861 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_aics_manual_input_gain_set()
864 return result; in cmd_vcs_client_aics_manual_input_gain_set()
870 int result; in cmd_vcs_client_aics_auto_input_gain_set() local
884 result = bt_vcs_aics_automatic_gain_set(vcs, vcs_included.aics[index]); in cmd_vcs_client_aics_auto_input_gain_set()
885 if (result != 0) { in cmd_vcs_client_aics_auto_input_gain_set()
886 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_aics_auto_input_gain_set()
889 return result; in cmd_vcs_client_aics_auto_input_gain_set()
895 int result; in cmd_vcs_client_aics_gain_set() local
916 result = bt_vcs_aics_gain_set(vcs, vcs_included.aics[index], gain); in cmd_vcs_client_aics_gain_set()
917 if (result != 0) { in cmd_vcs_client_aics_gain_set()
918 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_aics_gain_set()
921 return result; in cmd_vcs_client_aics_gain_set()
927 int result; in cmd_vcs_client_aics_input_description_get() local
941 result = bt_vcs_aics_description_get(vcs, vcs_included.aics[index]); in cmd_vcs_client_aics_input_description_get()
942 if (result != 0) { in cmd_vcs_client_aics_input_description_get()
943 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_aics_input_description_get()
946 return result; in cmd_vcs_client_aics_input_description_get()
952 int result; in cmd_vcs_client_aics_input_description_set() local
967 result = bt_vcs_aics_description_set(vcs, vcs_included.aics[index], in cmd_vcs_client_aics_input_description_set()
969 if (result != 0) { in cmd_vcs_client_aics_input_description_set()
970 shell_print(sh, "Fail: %d", result); in cmd_vcs_client_aics_input_description_set()
973 return result; in cmd_vcs_client_aics_input_description_set()