Lines Matching +full:volume +full:- +full:min
5 * Copyright (c) 2020-2022 Nordic Semiconductor ASA
7 * SPDX-License-Identifier: Apache-2.0
31 static void vcp_vol_rend_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute) in vcp_vol_rend_state_cb() argument
36 shell_print(ctx_shell, "VCP volume %u, mute %u", volume, mute); in vcp_vol_rend_state_cb()
72 "AICS inst %p gain settings units %u, min %d, max %d", in aics_gain_setting_cb()
206 vcp_register_param.aics_param[i].min_gain = -100; in cmd_vcp_vol_rend_init()
215 vcp_register_param.volume = 100; in cmd_vcp_vol_rend_init()
226 } else if (!strncmp(argv[i], "volume", 6)) { in cmd_vcp_vol_rend_init()
227 vcp_register_param.volume = shell_strtoul(kwarg, 10, &result); in cmd_vcp_vol_rend_init()
270 return -ENOEXEC; in cmd_vcp_vol_rend_volume_step()
276 return -ENOEXEC; in cmd_vcp_vol_rend_volume_step()
364 unsigned long volume; in cmd_vcp_vol_rend_volume_set() local
367 volume = shell_strtoul(argv[1], 0, &result); in cmd_vcp_vol_rend_volume_set()
369 shell_error(sh, "Failed to parse volume: %d", result); in cmd_vcp_vol_rend_volume_set()
371 return -ENOEXEC; in cmd_vcp_vol_rend_volume_set()
374 if (volume > UINT8_MAX) { in cmd_vcp_vol_rend_volume_set()
375 shell_error(sh, "Invalid volume %lu", volume); in cmd_vcp_vol_rend_volume_set()
377 return -ENOEXEC; in cmd_vcp_vol_rend_volume_set()
380 result = bt_vcp_vol_rend_set_vol(volume); 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>]",
952 "Get volume state of the VCP server. Should be done "
956 "Read volume flags",
959 "Turn the volume down",
962 "Turn the volume up",
965 "Turn the volume down, and unmute",
968 "Turn the volume up, and unmute",
971 "Set an absolute volume <volume>",
1035 "<gain (-128 to 127)>",
1050 "Bluetooth VCP Volume Renderer shell commands",