Home
last modified time | relevance | path

Searched +full:volume +full:- +full:control (Results 1 – 25 of 49) sorted by relevance

12

/Zephyr-latest/include/zephyr/bluetooth/audio/
Dvcp.h3 * @brief Bluetooth Volume Control Profile (VCP) APIs.
7 * Copyright (c) 2020-2024 Nordic Semiconductor ASA
9 * SPDX-License-Identifier: Apache-2.0
16 * @brief Volume Control Profile (VCP)
18 * @defgroup bt_vcp Volume Control Profile (VCP)
26 * The Volume Control Profile (VCP) provides procedures to control the volume level and mute state
42 * Defines the maximum number of Volume Offset Control service instances for the
43 * Volume Control Profile Volume Renderer
52 * Defines the maximum number of Audio Input Control service instances for the
53 * Volume Control Profile Volume Renderer
[all …]
Dvocs.h3 * @brief Bluetooth Volume Offset Control Service (VOCS) APIs.
7 * Copyright (c) 2020-2024 Nordic Semiconductor ASA
9 * SPDX-License-Identifier: Apache-2.0
16 * @brief Volume Offset Control Service (VOCS)
18 * @defgroup bt_vocs Volume Offset Control Service (VOCS)
26 * The Volume Offset Control Service is a secondary service, and as such should not be used own its
30 * Note that the API abstracts away the change counter in the volume offset control state and will
45 * @name Volume Offset Control Service Error codes
49 * The Change_Counter operand value does not match the Change_Counter field value of the Volume
53 /** An invalid opcode has been used in a control point procedure. */
[all …]
Dmicp.h3 * @brief Bluetooth Microphone Control Profile (MICP) APIs.
7 * Copyright (c) 2020-2024 Nordic Semiconductor ASA
9 * SPDX-License-Identifier: Apache-2.0
16 * @brief Microphone Control Profile (MICP)
18 * @defgroup bt_micp Microphone Control Profile (MICP)
38 * Defines the maximum number of Microphone Control Service instances for the
39 * Microphone Control Profile Microphone Device
56 * @name Microphone Control Profile mute states
70 /** @brief Register parameters structure for Microphone Control Service */
73 /** Register parameter structure for Audio Input Control Services */
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
DKconfig.vcp1 # Bluetooth Audio - Volume Control Profile configuration options
4 # Copyright (c) 2020-2022 Nordic Semiconductor ASA
6 # SPDX-License-Identifier: Apache-2.0
9 ################### Volume Control Profile Volume Renderer ###################
12 bool "Volume Control Profile Volume Renderer Support"
15 This option enables support for Volume Control Profile Volume Renderer
16 role and the Volume Control Service.
20 int "Volume Offset Control Service instance count"
24 This option sets the number of instances of Volume Offset Control
35 int "Audio Input Control Service instance count for VCS"
[all …]
DKconfig.vocs1 # Bluetooth Audio - Volume Offset Control Service options
5 # SPDX-License-Identifier: Apache-2.0
8 ##################### Volume Offset Control Service #####################
11 int "Volume Offset Control Service max instance count"
15 This option sets the maximum number of instances of Volume Offset
16 Control Services.
22 This hidden option enables support for Volume Control Service.
27 int "Volume Offset Control Service max output description size"
35 ##################### Volume Offset Control Service Client #####################
38 int "Volume Offset Control Service client max instance count"
[all …]
Dvcp_internal.h3 * @brief Internal Header for Bluetooth Volume Control Service (VCS).
6 * Copyright (c) 2020-2022 Nordic Semiconductor ASA
8 * SPDX-License-Identifier: Apache-2.0
33 uint8_t volume; member
45 uint8_t volume; member
Dvcp_vol_rend.c5 * Copyright (c) 2019-2020 Bose Corporation
6 * Copyright (c) 2020-2022 Nordic Semiconductor ASA
8 * SPDX-License-Identifier: Apache-2.0
47 ((uint8_t)MAX(0, (int)current_vol - vol_rend.volume_step))
85 LOG_DBG("Volume %u, mute %u, counter %u", in read_vol_state()
86 vol_rend.state.volume, vol_rend.state.mute, in read_vol_state()
110 atomic_set_bit(inst->notify, notify); in notify_work_reschedule()
112 err = k_work_reschedule(&inst->notify_work, delay); in notify_work_reschedule()
118 k_ticks_to_ms_floor32(k_work_delayable_remaining_get(&inst->notify_work))); in notify_work_reschedule()
127 err = bt_gatt_notify_uuid(NULL, uuid, inst->service_p->attrs, data, len); in notify()
[all …]
/Zephyr-latest/dts/bindings/usb/
Dusb-audio-feature-volume.yaml2 # SPDX-License-Identifier: Apache-2.0
4 # Specific fields for USB volume control.
6 description: USB volume control specific fields.
8 compatible: "usb-audio-feature-volume"
13 volume-max:
18 This attribute represents the maximum volume level.
19 The range from +127.9961 dB (0x7FFF) down to -127.9961 dB (0x8001).
20 Valid range: 0 - 0xFFFF
21 volume-min:
26 This attribute represents the minimum volume level.
[all …]
Dusb-audio-hp.yaml2 # SPDX-License-Identifier: Apache-2.0
8 compatible: "usb-audio-hp"
10 include: [usb-audio.yaml, usb-audio-feature-volume.yaml]
17 - 8
18 - 16
19 - 24
20 - 32
21 sample-rate-hz:
24 polling-interval:
28 channel-l:
[all …]
Dusb-audio-hs.yaml2 # SPDX-License-Identifier: Apache-2.0
8 compatible: "usb-audio-hs"
10 include: [usb-audio.yaml, usb-audio-feature-volume.yaml]
13 mic-resolution:
17 - 8
18 - 16
19 - 24
20 - 32
21 mic-sync-type:
29 - "No Synchronization"
[all …]
Dusb-audio-mic.yaml2 # SPDX-License-Identifier: Apache-2.0
8 compatible: "usb-audio-mic"
10 include: usb-audio.yaml
17 - 8
18 - 16
19 - 24
20 - 32
21 sync-type:
29 - "No Synchronization"
30 - "Asynchronous"
[all …]
/Zephyr-latest/samples/bluetooth/tmap_bmr/src/
Dvcp_vol_renderer.c2 * @brief Bluetooth Volume Control Profile (VCP) Volume Renderer role.
5 * Copyright (c) 2020-2024 Nordic Semiconductor ASA
9 * SPDX-License-Identifier: Apache-2.0
22 static void vcs_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute) in vcs_state_cb() argument
27 printk("VCS volume %u, mute %u\n", volume, mute); in vcs_state_cb()
54 vcp_register_param.volume = 100; in vcp_vol_renderer_init()
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/
Dvcp_vol_renderer.c2 * @brief Bluetooth Volume Control Profile (VCP) Volume Renderer role.
5 * Copyright (c) 2020-2024 Nordic Semiconductor ASA
9 * SPDX-License-Identifier: Apache-2.0
22 static void vcs_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute) in vcs_state_cb() argument
27 printk("VCS volume %u, mute %u\n", volume, mute); in vcs_state_cb()
54 vcp_register_param.volume = 100; in vcp_vol_renderer_init()
/Zephyr-latest/dts/bindings/usb/uac2/
Dzephyr,uac2-feature-unit.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "zephyr,uac2-feature-unit"
8 # string-array properties start with Primary channel 0 and follow with Logical
9 # channel(s). The "not-present" value is allowed to facilitate having controls
14 data-source:
18 mute-control:
19 type: string-array
20 description: Mute Control capabilities
22 - "read-only"
23 - "host-programmable"
[all …]
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_vcp.c1 /* btp_vcp.c - Bluetooth VCP Tester */
6 * SPDX-License-Identifier: Apache-2.0
48 uint16_t control; member
58 uint16_t control; member
65 /* Volume Control Service */
72 tester_set_bit(rp->data, BTP_VCS_READ_SUPPORTED_COMMANDS); in vcs_supported_commands()
73 tester_set_bit(rp->data, BTP_VCS_SET_VOL); in vcs_supported_commands()
74 tester_set_bit(rp->data, BTP_VCS_VOL_UP); in vcs_supported_commands()
75 tester_set_bit(rp->data, BTP_VCS_VOL_DOWN); in vcs_supported_commands()
76 tester_set_bit(rp->data, BTP_VCS_MUTE); in vcs_supported_commands()
[all …]
/Zephyr-latest/samples/subsys/usb/audio/headset/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
46 int16_t volume = 0; in feature_update() local
48 LOG_DBG("Control selector %d for channel %d updated", in feature_update()
49 evt->cs, evt->channel); in feature_update()
50 switch (evt->cs) { in feature_update()
54 volume = UNALIGNED_GET((int16_t *)evt->val); in feature_update()
55 LOG_INF("set volume: %d", volume); in feature_update()
/Zephyr-latest/samples/subsys/usb/audio/headphones_microphone/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
48 int16_t volume = 0; in feature_update() local
50 LOG_DBG("Control selector %d for channel %d updated", in feature_update()
51 evt->cs, evt->channel); in feature_update()
52 switch (evt->cs) { in feature_update()
56 volume = UNALIGNED_GET((int16_t *)evt->val); in feature_update()
57 LOG_INF("set volume: %d", volume); in feature_update()
/Zephyr-latest/subsys/bluetooth/
DKconfig.logging4 # SPDX-License-Identifier: Apache-2.0
18 module-str = "Bluetooth"
27 parent-module = BT
33 module-str = "Bluetooth HCI driver"
37 module-str = "Bluetooth Resolvable Private Address (RPA)"
45 module-str = "Bluetooth Encrypted Advertising Data"
51 module-str = "Bluetooth Cryptographic Toolbox"
60 module-str = "Bluetooth Attribute Protocol (ATT)"
64 module-str = "Bluetooth Generic Attribute Profile (GATT)"
68 module-str = "Bluetooth L2CAP"
[all …]
/Zephyr-latest/samples/bluetooth/hap_ha/src/
Dvcp_vol_renderer.c2 * @brief Bluetooth Volume Control Profile (VCP) Volume Renderer role.
5 * Copyright (c) 2020-2022 Nordic Semiconductor ASA
8 * SPDX-License-Identifier: Apache-2.0
21 static void vcs_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute) in vcs_state_cb() argument
26 printk("VCS volume %u, mute %u\n", volume, mute); in vcs_state_cb()
157 vcp_register_param.aics_param[i].min_gain = -100; in vcp_vol_renderer_init()
164 vcp_register_param.volume = 100; in vcp_vol_renderer_init()
Dhap_ha.h4 * SPDX-License-Identifier: Apache-2.0
26 * @param rsi Pointer to place the 6-octet newly generated RSI data.
33 * @brief Initialize the VCP Volume Renderer role
47 * @brief Initialize the CCP Call Control Client role
/Zephyr-latest/drivers/audio/
Dwm8904.h4 * SPDX-License-Identifier: Apache-2.0
50 /* FLL control register */
56 /* GPIO control register */
75 * [8] - MUTE: Output mute
76 * [7] - VU: Volume update, works for entire channel pair
77 * [6] - ZC: Zero-crossing enable
78 * [5:0] - VOL: 6-bit volume value
89 * [7] - MUTE: Input mute
90 * [4:0] - VOL: 5 bit volume value
99 * [6] - INx_CM_ENA: Common-mode rejection enable (N/A for single-mode)
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dcap.rst9 The Acceptor will typically be a resource-constrained device, such as a headset, earbud or hearing
20 .. code-block:: console
23 cap_acceptor --help
24 cap_acceptor - Bluetooth CAP acceptor shell commands
27 [rank <int>] [not-lockable] [sirk <data>]
39 ------------------
42 :code:`bt adv-data` or :code:`bt advertise` must be called again to set the new advertising data.
46 .. code-block:: console
52 ------------------------
56 .. code-block:: console
[all …]
/Zephyr-latest/subsys/bluetooth/host/classic/
Dhfp_internal.h6 * Copyright (c) 2015-2016 Intel Corporation
8 * SPDX-License-Identifier: Apache-2.0
15 #define BT_HFP_AG_FEATURE_3WAY_CALL 0x00000001 /* Three-way calling */
18 #define BT_HFP_AG_FEATURE_INBAND_RINGTONE 0x00000008 /* In-band ring capability */
22 #define BT_HFP_AG_FEATURE_ECC 0x00000080 /* Enhanced call control */
32 #define BT_HFP_HF_FEATURE_3WAY_CALL 0x00000002 /* Three-way calling */
35 #define BT_HFP_HF_FEATURE_VOLUME 0x00000010 /* Remote volume control */
37 #define BT_HFP_HF_FEATURE_ECC 0x00000040 /* Enhanced call control */
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dvcp_vol_rend.c5 * 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()
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()
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/api/audio/
Dbluetooth-le-audio-arch.rst13 {{{ GATT | GAP } | Low-level protocols (L2CAP, ATT, etc.)} | GAP | ISO}
25 (e.g. ``bt_bap`` for the Basic Audio Profile (BAP) and ``bt_vcp`` for the Volume Control Profile
39 higher layer applications and profiles to set up streams, change volume, control
45 (e.g. media or telephony), control volume and more.
92 label="Transition and Coordination Control";
112 label="Stream Control";
127 label="Content Control";
147 label="Rendering and Capture Control";
169 HAS -> CAS;
170 PBS -> CAS;
[all …]

12