Lines Matching full:index
416 unsigned long index; 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()
421 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_vocs_state_get()
426 if (index > vcp_included.vocs_cnt) { in cmd_vcp_vol_rend_vocs_state_get()
427 shell_error(sh, "Invalid index %lu", index); 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()
443 unsigned long index; 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()
448 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_vocs_location_get()
453 if (index > vcp_included.vocs_cnt) { in cmd_vcp_vol_rend_vocs_location_get()
454 shell_error(sh, "Invalid index %lu", index); 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()
471 unsigned long index; 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()
481 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_vocs_location_set()
486 if (index >= vcp_included.vocs_cnt) { in cmd_vcp_vol_rend_vocs_location_set()
487 shell_error(sh, "Index shall be less than %u, was %lu", in cmd_vcp_vol_rend_vocs_location_set()
488 vcp_included.vocs_cnt, index); 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()
517 unsigned long index; 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()
528 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_vocs_offset_set()
533 if (index >= vcp_included.vocs_cnt) { in cmd_vcp_vol_rend_vocs_offset_set()
534 shell_error(sh, "Index shall be less than %u, was %lu", in cmd_vcp_vol_rend_vocs_offset_set()
535 vcp_included.vocs_cnt, index); 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()
565 unsigned long index; 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()
570 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_vocs_output_description_get()
575 if (index > vcp_included.vocs_cnt) { in cmd_vcp_vol_rend_vocs_output_description_get()
576 shell_error(sh, "Invalid index %lu", index); 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()
593 unsigned long index; 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()
598 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_vocs_output_description_set()
603 if (index > vcp_included.vocs_cnt) { in cmd_vcp_vol_rend_vocs_output_description_set()
604 shell_error(sh, "Invalid index %lu", index); 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()
622 unsigned long index; 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()
627 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_state_get()
632 if (index > vcp_included.aics_cnt) { in cmd_vcp_vol_rend_aics_input_state_get()
633 shell_error(sh, "Invalid index %lu", index); 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()
649 unsigned long index; 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()
654 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_gain_setting_get()
659 if (index > vcp_included.aics_cnt) { in cmd_vcp_vol_rend_aics_gain_setting_get()
660 shell_error(sh, "Invalid index %lu", index); 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()
676 unsigned long index; 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()
681 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_type_get()
686 if (index > vcp_included.aics_cnt) { in cmd_vcp_vol_rend_aics_input_type_get()
687 shell_error(sh, "Invalid index %lu", index); 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()
703 unsigned long index; 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()
708 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_status_get()
713 if (index > vcp_included.aics_cnt) { in cmd_vcp_vol_rend_aics_input_status_get()
714 shell_error(sh, "Invalid index %lu", index); 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()
730 unsigned long index; 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()
735 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_unmute()
740 if (index > vcp_included.aics_cnt) { in cmd_vcp_vol_rend_aics_input_unmute()
741 shell_error(sh, "Invalid index %lu", index); 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()
757 unsigned long index; 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()
762 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_mute()
767 if (index > vcp_included.aics_cnt) { in cmd_vcp_vol_rend_aics_input_mute()
768 shell_error(sh, "Invalid index %lu", index); 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()
785 unsigned long index; 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()
790 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_manual_input_gain_set()
795 if (index > vcp_included.aics_cnt) { in cmd_vcp_vol_rend_aics_manual_input_gain_set()
796 shell_error(sh, "Invalid index %lu", index); 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()
813 unsigned long index; 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()
818 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_auto_input_gain_set()
823 if (index > vcp_included.aics_cnt) { in cmd_vcp_vol_rend_aics_auto_input_gain_set()
824 shell_error(sh, "Invalid index %lu", index); 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()
840 unsigned long index; 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()
846 shell_error(sh, "Could not parse index: %d", result); in cmd_vcp_vol_rend_aics_gain_set()
851 if (index >= vcp_included.aics_cnt) { in cmd_vcp_vol_rend_aics_gain_set()
852 shell_error(sh, "Index shall be less than %u, was %lu", in cmd_vcp_vol_rend_aics_gain_set()
853 vcp_included.aics_cnt, index); 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()
883 unsigned long index; 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()
888 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_description_get()
893 if (index > vcp_included.aics_cnt) { in cmd_vcp_vol_rend_aics_input_description_get()
894 shell_error(sh, "Invalid index %lu", index); 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()
909 unsigned long index; 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()
914 shell_error(sh, "Failed to parse index: %d", result); in cmd_vcp_vol_rend_aics_input_description_set()
919 if (index > vcp_included.aics_cnt) { in cmd_vcp_vol_rend_aics_input_description_set()
920 shell_error(sh, "Invalid index %lu", index); 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()