Lines Matching full:result
173 int result = 0; in cmd_vcp_vol_rend_init() local
223 vcp_register_param.step = shell_strtoul(kwarg, 10, &result); in cmd_vcp_vol_rend_init()
225 vcp_register_param.mute = shell_strtobool(kwarg, 10, &result); in cmd_vcp_vol_rend_init()
227 vcp_register_param.volume = shell_strtoul(kwarg, 10, &result); in cmd_vcp_vol_rend_init()
237 if (result != 0) { in cmd_vcp_vol_rend_init()
245 result = bt_vcp_vol_rend_register(&vcp_register_param); in cmd_vcp_vol_rend_init()
246 if (result) { in cmd_vcp_vol_rend_init()
247 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_init()
248 return result; in cmd_vcp_vol_rend_init()
251 result = bt_vcp_vol_rend_included_get(&vcp_included); in cmd_vcp_vol_rend_init()
252 if (result != 0) { in cmd_vcp_vol_rend_init()
253 shell_error(sh, "Failed to get included services: %d", result); in cmd_vcp_vol_rend_init()
254 return result; in cmd_vcp_vol_rend_init()
257 return result; in cmd_vcp_vol_rend_init()
264 int result = 0; in cmd_vcp_vol_rend_volume_step() local
266 step = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_volume_step()
267 if (result != 0) { in cmd_vcp_vol_rend_volume_step()
268 shell_error(sh, "Failed to parse step: %d", result); in cmd_vcp_vol_rend_volume_step()
279 result = bt_vcp_vol_rend_set_step(step); in cmd_vcp_vol_rend_volume_step()
280 if (result) { in cmd_vcp_vol_rend_volume_step()
281 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_volume_step()
284 return result; in cmd_vcp_vol_rend_volume_step()
290 int result = bt_vcp_vol_rend_get_state(); in cmd_vcp_vol_rend_state_get() local
292 if (result) { in cmd_vcp_vol_rend_state_get()
293 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_state_get()
296 return result; in cmd_vcp_vol_rend_state_get()
302 int result = bt_vcp_vol_rend_get_flags(); in cmd_vcp_vol_rend_flags_get() local
304 if (result) { in cmd_vcp_vol_rend_flags_get()
305 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_flags_get()
308 return result; in cmd_vcp_vol_rend_flags_get()
314 int result = bt_vcp_vol_rend_vol_down(); in cmd_vcp_vol_rend_volume_down() local
316 if (result) { in cmd_vcp_vol_rend_volume_down()
317 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_volume_down()
320 return result; in cmd_vcp_vol_rend_volume_down()
327 int result = bt_vcp_vol_rend_vol_up(); in cmd_vcp_vol_rend_volume_up() local
329 if (result) { in cmd_vcp_vol_rend_volume_up()
330 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_volume_up()
333 return result; in cmd_vcp_vol_rend_volume_up()
339 int result = bt_vcp_vol_rend_unmute_vol_down(); in cmd_vcp_vol_rend_unmute_volume_down() local
341 if (result) { in cmd_vcp_vol_rend_unmute_volume_down()
342 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_unmute_volume_down()
345 return result; in cmd_vcp_vol_rend_unmute_volume_down()
351 int result = bt_vcp_vol_rend_unmute_vol_up(); in cmd_vcp_vol_rend_unmute_volume_up() local
353 if (result) { in cmd_vcp_vol_rend_unmute_volume_up()
354 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_unmute_volume_up()
357 return result; in cmd_vcp_vol_rend_unmute_volume_up()
365 int result = 0; in cmd_vcp_vol_rend_volume_set() local
367 volume = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_volume_set()
368 if (result != 0) { in cmd_vcp_vol_rend_volume_set()
369 shell_error(sh, "Failed to parse volume: %d", result); in cmd_vcp_vol_rend_volume_set()
380 result = bt_vcp_vol_rend_set_vol(volume); in cmd_vcp_vol_rend_volume_set()
381 if (result) { in cmd_vcp_vol_rend_volume_set()
382 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_volume_set()
385 return result; in cmd_vcp_vol_rend_volume_set()
391 int result = bt_vcp_vol_rend_unmute(); in cmd_vcp_vol_rend_unmute() local
393 if (result) { in cmd_vcp_vol_rend_unmute()
394 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_unmute()
397 return result; in cmd_vcp_vol_rend_unmute()
403 int result = bt_vcp_vol_rend_mute(); in cmd_vcp_vol_rend_mute() local
405 if (result) { in cmd_vcp_vol_rend_mute()
406 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_mute()
409 return result; in cmd_vcp_vol_rend_mute()
417 int result = 0; in cmd_vcp_vol_rend_vocs_state_get() local
419 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_vocs_state_get()
420 if (result != 0) { in cmd_vcp_vol_rend_vocs_state_get()
421 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_vocs_state_get()
432 result = bt_vocs_state_get(vcp_included.vocs[index]); in cmd_vcp_vol_rend_vocs_state_get()
433 if (result) { in cmd_vcp_vol_rend_vocs_state_get()
434 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_vocs_state_get()
437 return result; in cmd_vcp_vol_rend_vocs_state_get()
444 int result = 0; in cmd_vcp_vol_rend_vocs_location_get() local
446 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_vocs_location_get()
447 if (result != 0) { in cmd_vcp_vol_rend_vocs_location_get()
448 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_vocs_location_get()
459 result = bt_vocs_location_get(vcp_included.vocs[index]); in cmd_vcp_vol_rend_vocs_location_get()
460 if (result) { in cmd_vcp_vol_rend_vocs_location_get()
461 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_vocs_location_get()
464 return result; in cmd_vcp_vol_rend_vocs_location_get()
472 int result = 0; in cmd_vcp_vol_rend_vocs_location_set() local
479 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_vocs_location_set()
480 if (result != 0) { in cmd_vcp_vol_rend_vocs_location_set()
481 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_vocs_location_set()
493 location = shell_strtoul(argv[2], 0, &result); in cmd_vcp_vol_rend_vocs_location_set()
494 if (result != 0) { in cmd_vcp_vol_rend_vocs_location_set()
495 shell_error(sh, "Failed to parse location: %d", result); in cmd_vcp_vol_rend_vocs_location_set()
506 result = bt_vocs_location_set(vcp_included.vocs[index], location); in cmd_vcp_vol_rend_vocs_location_set()
507 if (result) { in cmd_vcp_vol_rend_vocs_location_set()
508 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_vocs_location_set()
511 return result; in cmd_vcp_vol_rend_vocs_location_set()
518 int result = 0; in cmd_vcp_vol_rend_vocs_offset_set() local
526 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_vocs_offset_set()
527 if (result != 0) { in cmd_vcp_vol_rend_vocs_offset_set()
528 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_vocs_offset_set()
540 offset = shell_strtol(argv[2], 0, &result); in cmd_vcp_vol_rend_vocs_offset_set()
541 if (result != 0) { in cmd_vcp_vol_rend_vocs_offset_set()
542 shell_error(sh, "Failed to parse offset: %d", result); in cmd_vcp_vol_rend_vocs_offset_set()
553 result = bt_vocs_state_set(vcp_included.vocs[index], offset); in cmd_vcp_vol_rend_vocs_offset_set()
554 if (result) { in cmd_vcp_vol_rend_vocs_offset_set()
555 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_vocs_offset_set()
558 return result; in cmd_vcp_vol_rend_vocs_offset_set()
566 int result = 0; in cmd_vcp_vol_rend_vocs_output_description_get() local
568 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_vocs_output_description_get()
569 if (result != 0) { in cmd_vcp_vol_rend_vocs_output_description_get()
570 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_vocs_output_description_get()
581 result = bt_vocs_description_get(vcp_included.vocs[index]); in cmd_vcp_vol_rend_vocs_output_description_get()
582 if (result) { in cmd_vcp_vol_rend_vocs_output_description_get()
583 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_vocs_output_description_get()
586 return result; in cmd_vcp_vol_rend_vocs_output_description_get()
594 int result = 0; in cmd_vcp_vol_rend_vocs_output_description_set() local
596 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_vocs_output_description_set()
597 if (result != 0) { in cmd_vcp_vol_rend_vocs_output_description_set()
598 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_vocs_output_description_set()
609 result = bt_vocs_description_set(vcp_included.vocs[index], argv[2]); in cmd_vcp_vol_rend_vocs_output_description_set()
610 if (result) { in cmd_vcp_vol_rend_vocs_output_description_set()
611 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_vocs_output_description_set()
614 return result; in cmd_vcp_vol_rend_vocs_output_description_set()
623 int result = 0; in cmd_vcp_vol_rend_aics_input_state_get() local
625 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_aics_input_state_get()
626 if (result != 0) { in cmd_vcp_vol_rend_aics_input_state_get()
627 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_state_get()
638 result = bt_aics_state_get(vcp_included.aics[index]); in cmd_vcp_vol_rend_aics_input_state_get()
639 if (result) { in cmd_vcp_vol_rend_aics_input_state_get()
640 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_aics_input_state_get()
643 return result; in cmd_vcp_vol_rend_aics_input_state_get()
650 int result = 0; in cmd_vcp_vol_rend_aics_gain_setting_get() local
652 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_aics_gain_setting_get()
653 if (result != 0) { in cmd_vcp_vol_rend_aics_gain_setting_get()
654 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_gain_setting_get()
665 result = bt_aics_gain_setting_get(vcp_included.aics[index]); in cmd_vcp_vol_rend_aics_gain_setting_get()
666 if (result) { in cmd_vcp_vol_rend_aics_gain_setting_get()
667 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_aics_gain_setting_get()
670 return result; in cmd_vcp_vol_rend_aics_gain_setting_get()
677 int result = 0; in cmd_vcp_vol_rend_aics_input_type_get() local
679 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_aics_input_type_get()
680 if (result != 0) { in cmd_vcp_vol_rend_aics_input_type_get()
681 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_type_get()
692 result = bt_aics_type_get(vcp_included.aics[index]); in cmd_vcp_vol_rend_aics_input_type_get()
693 if (result) { in cmd_vcp_vol_rend_aics_input_type_get()
694 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_aics_input_type_get()
697 return result; in cmd_vcp_vol_rend_aics_input_type_get()
704 int result = 0; in cmd_vcp_vol_rend_aics_input_status_get() local
706 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_aics_input_status_get()
707 if (result != 0) { in cmd_vcp_vol_rend_aics_input_status_get()
708 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_status_get()
719 result = bt_aics_status_get(vcp_included.aics[index]); in cmd_vcp_vol_rend_aics_input_status_get()
720 if (result) { in cmd_vcp_vol_rend_aics_input_status_get()
721 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_aics_input_status_get()
724 return result; in cmd_vcp_vol_rend_aics_input_status_get()
731 int result = 0; in cmd_vcp_vol_rend_aics_input_unmute() local
733 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_aics_input_unmute()
734 if (result != 0) { in cmd_vcp_vol_rend_aics_input_unmute()
735 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_unmute()
746 result = bt_aics_unmute(vcp_included.aics[index]); in cmd_vcp_vol_rend_aics_input_unmute()
747 if (result) { in cmd_vcp_vol_rend_aics_input_unmute()
748 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_aics_input_unmute()
751 return result; in cmd_vcp_vol_rend_aics_input_unmute()
758 int result = 0; in cmd_vcp_vol_rend_aics_input_mute() local
760 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_aics_input_mute()
761 if (result != 0) { in cmd_vcp_vol_rend_aics_input_mute()
762 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_mute()
773 result = bt_aics_mute(vcp_included.aics[index]); in cmd_vcp_vol_rend_aics_input_mute()
774 if (result) { in cmd_vcp_vol_rend_aics_input_mute()
775 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_aics_input_mute()
778 return result; in cmd_vcp_vol_rend_aics_input_mute()
786 int result = 0; in cmd_vcp_vol_rend_aics_manual_input_gain_set() local
788 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_aics_manual_input_gain_set()
789 if (result != 0) { in cmd_vcp_vol_rend_aics_manual_input_gain_set()
790 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_manual_input_gain_set()
801 result = bt_aics_manual_gain_set(vcp_included.aics[index]); in cmd_vcp_vol_rend_aics_manual_input_gain_set()
802 if (result) { in cmd_vcp_vol_rend_aics_manual_input_gain_set()
803 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_aics_manual_input_gain_set()
806 return result; in cmd_vcp_vol_rend_aics_manual_input_gain_set()
814 int result = 0; in cmd_vcp_vol_rend_aics_auto_input_gain_set() local
816 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_aics_auto_input_gain_set()
817 if (result != 0) { in cmd_vcp_vol_rend_aics_auto_input_gain_set()
818 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_auto_input_gain_set()
829 result = bt_aics_automatic_gain_set(vcp_included.aics[index]); in cmd_vcp_vol_rend_aics_auto_input_gain_set()
830 if (result) { in cmd_vcp_vol_rend_aics_auto_input_gain_set()
831 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_aics_auto_input_gain_set()
834 return result; in cmd_vcp_vol_rend_aics_auto_input_gain_set()
841 int result = 0; in cmd_vcp_vol_rend_aics_gain_set() local
844 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_aics_gain_set()
845 if (result != 0) { in cmd_vcp_vol_rend_aics_gain_set()
846 shell_error(sh, "Could not parse index: %d", result); in cmd_vcp_vol_rend_aics_gain_set()
858 gain = shell_strtol(argv[2], 0, &result); in cmd_vcp_vol_rend_aics_gain_set()
859 if (result != 0) { in cmd_vcp_vol_rend_aics_gain_set()
860 shell_error(sh, "Could not parse gain: %d", result); in cmd_vcp_vol_rend_aics_gain_set()
872 result = bt_aics_gain_set(vcp_included.aics[index], gain); in cmd_vcp_vol_rend_aics_gain_set()
873 if (result) { in cmd_vcp_vol_rend_aics_gain_set()
874 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_aics_gain_set()
877 return result; in cmd_vcp_vol_rend_aics_gain_set()
884 int result = 0; in cmd_vcp_vol_rend_aics_input_description_get() local
886 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_aics_input_description_get()
887 if (result != 0) { in cmd_vcp_vol_rend_aics_input_description_get()
888 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_description_get()
898 result = bt_aics_description_get(vcp_included.aics[index]); in cmd_vcp_vol_rend_aics_input_description_get()
899 if (result) { in cmd_vcp_vol_rend_aics_input_description_get()
900 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_aics_input_description_get()
903 return result; in cmd_vcp_vol_rend_aics_input_description_get()
910 int result = 0; in cmd_vcp_vol_rend_aics_input_description_set() local
912 index = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_aics_input_description_set()
913 if (result != 0) { in cmd_vcp_vol_rend_aics_input_description_set()
914 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_description_set()
925 result = bt_aics_description_set(vcp_included.aics[index], argv[2]); in cmd_vcp_vol_rend_aics_input_description_set()
926 if (result) { in cmd_vcp_vol_rend_aics_input_description_set()
927 shell_print(sh, "Fail: %d", result); in cmd_vcp_vol_rend_aics_input_description_set()
930 return result; in cmd_vcp_vol_rend_aics_input_description_set()