Lines Matching refs:result
339 int result; in cmd_vcp_vol_ctlr_discover() local
346 result = bt_vcp_vol_ctlr_cb_register(&vcp_cbs); in cmd_vcp_vol_ctlr_discover()
347 if (result != 0) { in cmd_vcp_vol_ctlr_discover()
348 shell_print(sh, "CB register failed: %d", result); in cmd_vcp_vol_ctlr_discover()
349 return result; in cmd_vcp_vol_ctlr_discover()
360 result = bt_vcp_vol_ctlr_discover(default_conn, &vcp_vol_ctlr); in cmd_vcp_vol_ctlr_discover()
361 if (result != 0) { in cmd_vcp_vol_ctlr_discover()
362 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_discover()
365 return result; in cmd_vcp_vol_ctlr_discover()
371 int result; in cmd_vcp_vol_ctlr_state_get() local
378 result = bt_vcp_vol_ctlr_read_state(vcp_vol_ctlr); in cmd_vcp_vol_ctlr_state_get()
379 if (result != 0) { in cmd_vcp_vol_ctlr_state_get()
380 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_state_get()
383 return result; in cmd_vcp_vol_ctlr_state_get()
389 int result; in cmd_vcp_vol_ctlr_flags_get() local
396 result = bt_vcp_vol_ctlr_read_flags(vcp_vol_ctlr); in cmd_vcp_vol_ctlr_flags_get()
397 if (result != 0) { in cmd_vcp_vol_ctlr_flags_get()
398 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_flags_get()
401 return result; in cmd_vcp_vol_ctlr_flags_get()
407 int result; in cmd_vcp_vol_ctlr_volume_down() local
414 result = bt_vcp_vol_ctlr_vol_down(vcp_vol_ctlr); in cmd_vcp_vol_ctlr_volume_down()
415 if (result != 0) { in cmd_vcp_vol_ctlr_volume_down()
416 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_volume_down()
419 return result; in cmd_vcp_vol_ctlr_volume_down()
426 int result; in cmd_vcp_vol_ctlr_volume_up() local
433 result = bt_vcp_vol_ctlr_vol_up(vcp_vol_ctlr); in cmd_vcp_vol_ctlr_volume_up()
434 if (result != 0) { in cmd_vcp_vol_ctlr_volume_up()
435 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_volume_up()
438 return result; in cmd_vcp_vol_ctlr_volume_up()
444 int result; in cmd_vcp_vol_ctlr_unmute_volume_down() local
451 result = bt_vcp_vol_ctlr_unmute_vol_down(vcp_vol_ctlr); in cmd_vcp_vol_ctlr_unmute_volume_down()
452 if (result != 0) { in cmd_vcp_vol_ctlr_unmute_volume_down()
453 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_unmute_volume_down()
456 return result; in cmd_vcp_vol_ctlr_unmute_volume_down()
462 int result; in cmd_vcp_vol_ctlr_unmute_volume_up() local
469 result = bt_vcp_vol_ctlr_unmute_vol_up(vcp_vol_ctlr); in cmd_vcp_vol_ctlr_unmute_volume_up()
470 if (result != 0) { in cmd_vcp_vol_ctlr_unmute_volume_up()
471 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_unmute_volume_up()
474 return result; in cmd_vcp_vol_ctlr_unmute_volume_up()
482 int result = 0; in cmd_vcp_vol_ctlr_volume_set() local
489 volume = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_volume_set()
490 if (result != 0) { in cmd_vcp_vol_ctlr_volume_set()
491 shell_error(sh, "Failed to parse volume: %d", result); in cmd_vcp_vol_ctlr_volume_set()
502 result = bt_vcp_vol_ctlr_set_vol(vcp_vol_ctlr, volume); in cmd_vcp_vol_ctlr_volume_set()
503 if (result != 0) { in cmd_vcp_vol_ctlr_volume_set()
504 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_volume_set()
507 return result; in cmd_vcp_vol_ctlr_volume_set()
514 int result; in cmd_vcp_vol_ctlr_unmute() local
521 result = bt_vcp_vol_ctlr_unmute(vcp_vol_ctlr); in cmd_vcp_vol_ctlr_unmute()
522 if (result != 0) { in cmd_vcp_vol_ctlr_unmute()
523 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_unmute()
526 return result; in cmd_vcp_vol_ctlr_unmute()
532 int result; in cmd_vcp_vol_ctlr_mute() local
539 result = bt_vcp_vol_ctlr_mute(vcp_vol_ctlr); in cmd_vcp_vol_ctlr_mute()
540 if (result != 0) { in cmd_vcp_vol_ctlr_mute()
541 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_mute()
544 return result; in cmd_vcp_vol_ctlr_mute()
551 int result = 0; in cmd_vcp_vol_ctlr_vocs_state_get() local
558 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_vocs_state_get()
559 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_state_get()
560 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_vocs_state_get()
572 result = bt_vocs_state_get(vcp_included.vocs[index]); in cmd_vcp_vol_ctlr_vocs_state_get()
573 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_state_get()
574 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_vocs_state_get()
577 return result; in cmd_vcp_vol_ctlr_vocs_state_get()
584 int result = 0; in cmd_vcp_vol_ctlr_vocs_location_get() local
591 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_vocs_location_get()
592 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_location_get()
593 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_vocs_location_get()
605 result = bt_vocs_location_get(vcp_included.vocs[index]); in cmd_vcp_vol_ctlr_vocs_location_get()
606 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_location_get()
607 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_vocs_location_get()
610 return result; in cmd_vcp_vol_ctlr_vocs_location_get()
618 int result = 0; in cmd_vcp_vol_ctlr_vocs_location_set() local
625 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_vocs_location_set()
626 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_location_set()
627 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_vocs_location_set()
639 location = shell_strtoul(argv[2], 0, &result); in cmd_vcp_vol_ctlr_vocs_location_set()
640 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_location_set()
641 shell_error(sh, "Failed to parse location: %d", result); in cmd_vcp_vol_ctlr_vocs_location_set()
652 result = bt_vocs_location_set(vcp_included.vocs[index], location); in cmd_vcp_vol_ctlr_vocs_location_set()
653 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_location_set()
654 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_vocs_location_set()
657 return result; in cmd_vcp_vol_ctlr_vocs_location_set()
664 int result = 0; in cmd_vcp_vol_ctlr_vocs_offset_set() local
672 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_vocs_offset_set()
673 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_offset_set()
674 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_vocs_offset_set()
686 offset = shell_strtol(argv[2], 0, &result); in cmd_vcp_vol_ctlr_vocs_offset_set()
687 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_offset_set()
688 shell_error(sh, "Failed to parse offset: %d", result); in cmd_vcp_vol_ctlr_vocs_offset_set()
699 result = bt_vocs_state_set(vcp_included.vocs[index], in cmd_vcp_vol_ctlr_vocs_offset_set()
701 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_offset_set()
702 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_vocs_offset_set()
705 return result; in cmd_vcp_vol_ctlr_vocs_offset_set()
712 int result = 0; in cmd_vcp_vol_ctlr_vocs_output_description_get() local
719 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_vocs_output_description_get()
720 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_output_description_get()
721 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_vocs_output_description_get()
733 result = bt_vocs_description_get(vcp_included.vocs[index]); in cmd_vcp_vol_ctlr_vocs_output_description_get()
734 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_output_description_get()
735 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_vocs_output_description_get()
738 return result; in cmd_vcp_vol_ctlr_vocs_output_description_get()
745 int result = 0; in cmd_vcp_vol_ctlr_vocs_output_description_set() local
752 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_vocs_output_description_set()
753 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_output_description_set()
754 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_vocs_output_description_set()
766 result = bt_vocs_description_set(vcp_included.vocs[index], argv[2]); in cmd_vcp_vol_ctlr_vocs_output_description_set()
767 if (result != 0) { in cmd_vcp_vol_ctlr_vocs_output_description_set()
768 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_vocs_output_description_set()
771 return result; in cmd_vcp_vol_ctlr_vocs_output_description_set()
778 int result = 0; in cmd_vcp_vol_ctlr_aics_input_state_get() local
785 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_aics_input_state_get()
786 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_state_get()
787 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_aics_input_state_get()
799 result = bt_aics_state_get(vcp_included.aics[index]); in cmd_vcp_vol_ctlr_aics_input_state_get()
800 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_state_get()
801 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_aics_input_state_get()
804 return result; in cmd_vcp_vol_ctlr_aics_input_state_get()
811 int result = 0; in cmd_vcp_vol_ctlr_aics_gain_setting_get() local
818 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_aics_gain_setting_get()
819 if (result != 0) { in cmd_vcp_vol_ctlr_aics_gain_setting_get()
820 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_aics_gain_setting_get()
832 result = bt_aics_gain_setting_get(vcp_included.aics[index]); in cmd_vcp_vol_ctlr_aics_gain_setting_get()
833 if (result != 0) { in cmd_vcp_vol_ctlr_aics_gain_setting_get()
834 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_aics_gain_setting_get()
837 return result; in cmd_vcp_vol_ctlr_aics_gain_setting_get()
844 int result = 0; in cmd_vcp_vol_ctlr_aics_input_type_get() local
851 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_aics_input_type_get()
852 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_type_get()
853 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_aics_input_type_get()
865 result = bt_aics_type_get(vcp_included.aics[index]); in cmd_vcp_vol_ctlr_aics_input_type_get()
866 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_type_get()
867 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_aics_input_type_get()
870 return result; in cmd_vcp_vol_ctlr_aics_input_type_get()
877 int result = 0; in cmd_vcp_vol_ctlr_aics_input_status_get() local
884 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_aics_input_status_get()
885 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_status_get()
886 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_aics_input_status_get()
898 result = bt_aics_status_get(vcp_included.aics[index]); in cmd_vcp_vol_ctlr_aics_input_status_get()
899 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_status_get()
900 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_aics_input_status_get()
903 return result; in cmd_vcp_vol_ctlr_aics_input_status_get()
910 int result = 0; in cmd_vcp_vol_ctlr_aics_input_unmute() local
917 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_aics_input_unmute()
918 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_unmute()
919 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_aics_input_unmute()
931 result = bt_aics_unmute(vcp_included.aics[index]); in cmd_vcp_vol_ctlr_aics_input_unmute()
932 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_unmute()
933 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_aics_input_unmute()
936 return result; in cmd_vcp_vol_ctlr_aics_input_unmute()
943 int result = 0; in cmd_vcp_vol_ctlr_aics_input_mute() local
950 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_aics_input_mute()
951 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_mute()
952 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_aics_input_mute()
964 result = bt_aics_mute(vcp_included.aics[index]); in cmd_vcp_vol_ctlr_aics_input_mute()
965 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_mute()
966 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_aics_input_mute()
969 return result; in cmd_vcp_vol_ctlr_aics_input_mute()
976 int result = 0; in cmd_vcp_vol_ctlr_aics_manual_input_gain_set() local
983 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_aics_manual_input_gain_set()
984 if (result != 0) { in cmd_vcp_vol_ctlr_aics_manual_input_gain_set()
985 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_aics_manual_input_gain_set()
997 result = bt_aics_manual_gain_set(vcp_included.aics[index]); in cmd_vcp_vol_ctlr_aics_manual_input_gain_set()
998 if (result != 0) { in cmd_vcp_vol_ctlr_aics_manual_input_gain_set()
999 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_aics_manual_input_gain_set()
1002 return result; in cmd_vcp_vol_ctlr_aics_manual_input_gain_set()
1009 int result = 0; in cmd_vcp_vol_ctlr_aics_auto_input_gain_set() local
1016 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_aics_auto_input_gain_set()
1017 if (result != 0) { in cmd_vcp_vol_ctlr_aics_auto_input_gain_set()
1018 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_aics_auto_input_gain_set()
1030 result = bt_aics_automatic_gain_set(vcp_included.aics[index]); in cmd_vcp_vol_ctlr_aics_auto_input_gain_set()
1031 if (result != 0) { in cmd_vcp_vol_ctlr_aics_auto_input_gain_set()
1032 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_aics_auto_input_gain_set()
1035 return result; in cmd_vcp_vol_ctlr_aics_auto_input_gain_set()
1042 int result = 0; in cmd_vcp_vol_ctlr_aics_gain_set() local
1050 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_aics_gain_set()
1051 if (result != 0) { in cmd_vcp_vol_ctlr_aics_gain_set()
1052 shell_error(sh, "Could not parse index: %d", result); in cmd_vcp_vol_ctlr_aics_gain_set()
1062 gain = shell_strtol(argv[2], 0, &result); in cmd_vcp_vol_ctlr_aics_gain_set()
1063 if (result != 0) { in cmd_vcp_vol_ctlr_aics_gain_set()
1064 shell_error(sh, "Could not parse gain: %d", result); in cmd_vcp_vol_ctlr_aics_gain_set()
1074 result = bt_aics_gain_set(vcp_included.aics[index], gain); in cmd_vcp_vol_ctlr_aics_gain_set()
1075 if (result != 0) { in cmd_vcp_vol_ctlr_aics_gain_set()
1076 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_aics_gain_set()
1079 return result; in cmd_vcp_vol_ctlr_aics_gain_set()
1086 int result = 0; in cmd_vcp_vol_ctlr_aics_input_description_get() local
1093 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_aics_input_description_get()
1094 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_description_get()
1095 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_aics_input_description_get()
1107 result = bt_aics_description_get(vcp_included.aics[index]); in cmd_vcp_vol_ctlr_aics_input_description_get()
1108 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_description_get()
1109 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_aics_input_description_get()
1112 return result; in cmd_vcp_vol_ctlr_aics_input_description_get()
1119 int result = 0; in cmd_vcp_vol_ctlr_aics_input_description_set() local
1126 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_ctlr_aics_input_description_set()
1127 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_description_set()
1128 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_ctlr_aics_input_description_set()
1140 result = bt_aics_description_set(vcp_included.aics[index], argv[2]); in cmd_vcp_vol_ctlr_aics_input_description_set()
1141 if (result != 0) { in cmd_vcp_vol_ctlr_aics_input_description_set()
1142 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_ctlr_aics_input_description_set()
1145 return result; in cmd_vcp_vol_ctlr_aics_input_description_set()