Lines Matching +full:step +full:- +full:down

5  * Copyright (c) 2020-2022 Nordic Semiconductor ASA
7 * SPDX-License-Identifier: Apache-2.0
206 vcp_register_param.aics_param[i].min_gain = -100; in cmd_vcp_vol_rend_init()
213 vcp_register_param.step = 1; in cmd_vcp_vol_rend_init()
222 if (!strncmp(argv[i], "step", 4)) { in cmd_vcp_vol_rend_init()
223 vcp_register_param.step = shell_strtoul(kwarg, 10, &result); in cmd_vcp_vol_rend_init()
263 unsigned long step; in cmd_vcp_vol_rend_volume_step() local
266 step = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_volume_step()
268 shell_error(sh, "Failed to parse step: %d", result); in cmd_vcp_vol_rend_volume_step()
270 return -ENOEXEC; in cmd_vcp_vol_rend_volume_step()
273 if (!IN_RANGE(step, 1, UINT8_MAX)) { in cmd_vcp_vol_rend_volume_step()
274 shell_error(sh, "Invalid step %lu", step); in cmd_vcp_vol_rend_volume_step()
276 return -ENOEXEC; in cmd_vcp_vol_rend_volume_step()
279 result = bt_vcp_vol_rend_set_step(step); in cmd_vcp_vol_rend_volume_step()
371 return -ENOEXEC; in cmd_vcp_vol_rend_volume_set()
377 return -ENOEXEC; in cmd_vcp_vol_rend_volume_set()
423 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_state_get()
429 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_state_get()
450 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_location_get()
456 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_location_get()
476 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_location_set()
483 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_location_set()
490 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_location_set()
497 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_location_set()
503 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_location_set()
523 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_offset_set()
530 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_offset_set()
537 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_offset_set()
544 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_offset_set()
548 shell_error(sh, "Offset shall be %d-%d, was %ld", in cmd_vcp_vol_rend_vocs_offset_set()
550 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_offset_set()
572 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_output_description_get()
578 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_output_description_get()
600 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_output_description_set()
606 return -ENOEXEC; in cmd_vcp_vol_rend_vocs_output_description_set()
629 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_state_get()
635 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_state_get()
656 return -ENOEXEC; in cmd_vcp_vol_rend_aics_gain_setting_get()
662 return -ENOEXEC; in cmd_vcp_vol_rend_aics_gain_setting_get()
683 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_type_get()
689 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_type_get()
710 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_status_get()
716 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_status_get()
737 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_unmute()
743 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_unmute()
764 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_mute()
770 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_mute()
792 return -ENOEXEC; in cmd_vcp_vol_rend_aics_manual_input_gain_set()
798 return -ENOEXEC; in cmd_vcp_vol_rend_aics_manual_input_gain_set()
820 return -ENOEXEC; in cmd_vcp_vol_rend_aics_auto_input_gain_set()
826 return -ENOEXEC; in cmd_vcp_vol_rend_aics_auto_input_gain_set()
848 return -ENOEXEC; in cmd_vcp_vol_rend_aics_gain_set()
855 return -ENOEXEC; in cmd_vcp_vol_rend_aics_gain_set()
862 return -ENOEXEC; in cmd_vcp_vol_rend_aics_gain_set()
866 shell_error(sh, "Gain shall be %d-%d, was %ld", in cmd_vcp_vol_rend_aics_gain_set()
869 return -ENOEXEC; in cmd_vcp_vol_rend_aics_gain_set()
890 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_description_get()
896 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_description_get()
916 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_description_set()
922 return -ENOEXEC; in cmd_vcp_vol_rend_aics_input_description_set()
943 return -ENOEXEC; in cmd_vcp_vol_rend()
949 "[step=<uint>] [mute=<bool>] [volume=<uint>]",
959 "Turn the volume down",
965 "Turn the volume down, and unmute",
979 SHELL_CMD_ARG(step, NULL,
980 "Set step size",
1035 "<gain (-128 to 127)>",