Home
last modified time | relevance | path

Searched full:volume (Results 1 – 25 of 122) sorted by relevance

12345

/Zephyr-latest/include/zephyr/bluetooth/audio/
Dvcp.h3 * @brief Bluetooth Volume Control Profile (VCP) APIs.
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
53 * Volume Control Profile Volume Renderer
62 * @name Volume Control Service Error codes
66 * The Change_Counter operand value does not match the Change_Counter field value of the Volume
75 * @name Volume Control Service Mute Values
[all …]
Dvocs.h3 * @brief Bluetooth Volume Offset Control Service (VOCS) APIs.
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
60 * @name Volume Offset Control Service offset limits
69 /** @brief Opaque Volume Offset Control Service instance. */
72 /** @brief Structure for registering a Volume Offset Control Service instance. */
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
DKconfig.vcp1 # Bluetooth Audio - Volume Control Profile configuration options
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
50 bool "Volume Flags notifiable support"
53 on the Volume Flags characteristic.
57 ################### Volume Control Profile Volume Controller ###################
[all …]
DKconfig.vocs1 # Bluetooth Audio - Volume Offset Control Service options
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
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"
42 This option sets the maximum number of instances of Volume Offset
49 This hidden option enables support for Volume Offset Control Service.
Dvcp_vol_rend.c85 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()
196 LOG_DBG("Relative Volume Down (0x%x)", opcode); in write_vcs_control()
197 if (vol_rend.state.volume > 0) { in write_vcs_control()
198 vol_rend.state.volume = VOLUME_DOWN(vol_rend.state.volume); in write_vcs_control()
204 LOG_DBG("Relative Volume Up (0x%x)", opcode); in write_vcs_control()
205 if (vol_rend.state.volume != UINT8_MAX) { in write_vcs_control()
206 vol_rend.state.volume = VOLUME_UP(vol_rend.state.volume); in write_vcs_control()
212 LOG_DBG("(Unmute) relative Volume Down (0x%x)", opcode); in write_vcs_control()
213 if (vol_rend.state.volume > 0) { in write_vcs_control()
[all …]
Dvcp_internal.h3 * @brief Internal Header for Bluetooth Volume Control Service (VCS).
33 uint8_t volume; member
45 uint8_t volume; member
/Zephyr-latest/dts/bindings/usb/
Dusb-audio-feature-volume.yaml4 # 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.
21 volume-min:
26 This attribute represents the minimum volume level.
29 volume-res:
34 This attribute represents the volume resolution(step).
/Zephyr-latest/samples/subsys/usb/audio/headphones_microphone/
Dapp.overlay14 feature-volume;
15 volume-max = <0x0500>;
16 volume-min = <0xBA00>;
17 volume-res = <0x100>;
/Zephyr-latest/samples/subsys/usb/audio/headset/
Dapp.overlay18 hp-feature-volume;
19 volume-max = <0x0500>;
20 volume-min = <0xBA00>;
21 volume-res = <0x100>;
/Zephyr-latest/samples/bluetooth/tmap_central/src/
Dtmap_central.h28 * @brief Initialize the VCP Volume Controller role
35 * @brief Send the Mute command to the VCP Volume Renderer
42 * @brief Send the Unmute command to the VCP Volume Renderer
49 * @brief Set the volume for the VCP Volume Renderer
53 int vcp_vol_ctlr_set_vol(uint8_t volume);
Dvcp_vol_ctlr.c39 uint8_t volume, uint8_t mute) in vcs_state_cb() argument
46 printk("VCS volume %u, mute %u\n", volume, mute); in vcs_state_cb()
140 int vcp_vol_ctlr_set_vol(uint8_t volume) in vcp_vol_ctlr_set_vol() argument
145 err = bt_vcp_vol_ctlr_set_vol(vcp_vol_ctlr, volume); in vcp_vol_ctlr_set_vol()
/Zephyr-latest/modules/fatfs/
Dzfs_ffsystem.c32 /* Table of Zephyr mutex. One for each volume and an extra one for the ff system.
38 * Mutex ID vol: Volume mutex (0 to FF_VOLUMES - 1) or system mutex (FF_VOLUMES)
47 * Mutex ID vol: Volume mutex (0 to FF_VOLUMES - 1) or system mutex (FF_VOLUMES)
55 /* Request Grant to Access the Volume
56 * Mutex ID vol: Volume mutex (0 to FF_VOLUMES - 1) or system mutex (FF_VOLUMES)
64 /* Release Grant to Access the Volume
65 * Mutex ID vol: Volume mutex (0 to FF_VOLUMES - 1) or system mutex (FF_VOLUMES)
/Zephyr-latest/samples/bluetooth/tmap_bmr/src/
Dvcp_vol_renderer.c2 * @brief Bluetooth Volume Control Profile (VCP) Volume Renderer role.
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.
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/tests/bluetooth/tester/src/audio/
Dbtp_vcp.c65 /* Volume Control Service */
89 LOG_DBG("Set volume 0x%02x", cp->volume); in set_volume()
91 if (bt_vcp_vol_rend_set_vol(cp->volume) != 0) { in set_volume()
101 LOG_DBG("Volume Up"); in vol_up()
113 LOG_DBG("Volume Down"); in vol_down()
146 static void vcs_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute) in vcs_state_cb() argument
195 /* Volume Offset Control Service */
362 LOG_DBG("Volume Offset Control Service offset state get"); in vocs_state_get()
378 LOG_DBG("VCP CTLR Set absolute volume %d", offset); in vocs_state_set()
393 LOG_DBG("Volume Offset Control Service Audio Location get"); in vocs_audio_location_get()
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dcap.rst247 such as mute or volume states.
262 change_volume :Change volume on all connections <volume>
263 change_volume_mute :Change volume mute state on all connections <mute>
264 change_volume_offset :Change volume offset per connection <volume_offset
293 Setting the volume on all connected devices
302 Setting volume to 15 on 2 connections
303 VCP volume 15, mute 0
305 VCP volume 15, mute 0
308 Volume change completed
310 Setting the volume offset on one or more devices
[all …]
/Zephyr-latest/samples/subsys/usb/audio/headset/src/
Dmain.c46 int16_t volume = 0; in feature_update() local
54 volume = UNALIGNED_GET((int16_t *)evt->val); in feature_update()
55 LOG_INF("set volume: %d", volume); in feature_update()
/Zephyr-latest/samples/bluetooth/hap_ha/
Dprj.conf49 # (AICS) to expose control of the gain of its inputs to a Volume Controller.
52 # If the HA supports the Volume Balance feature (see Section 3.1) and the HA
54 # of Volume Offset Control Service (VOCS).
/Zephyr-latest/samples/subsys/usb/audio/headphones_microphone/src/
Dmain.c48 int16_t volume = 0; in feature_update() local
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/audio/shell/
Dcap_commander.c43 shell_error(ctx_shell, "Volume change failed (%d)", err); in cap_volume_changed_cb()
47 shell_print(ctx_shell, "Volume change completed"); in cap_volume_changed_cb()
53 shell_error(ctx_shell, "Volume mute change failed (%d)", err); in cap_volume_mute_changed_cb()
57 shell_print(ctx_shell, "Volume mute change completed"); in cap_volume_mute_changed_cb()
63 shell_error(ctx_shell, "Volume offset change failed (%d)", err); in cap_volume_offset_changed_cb()
67 shell_print(ctx_shell, "Volume offset change completed"); in cap_volume_offset_changed_cb()
214 unsigned long volume; in cmd_cap_commander_change_volume() local
222 volume = shell_strtoul(argv[1], 10, &err); in cmd_cap_commander_change_volume()
224 shell_error(sh, "Failed to parse volume from %s", argv[1]); in cmd_cap_commander_change_volume()
229 if (volume > UINT8_MAX) { in cmd_cap_commander_change_volume()
[all …]
Dvcp_vol_rend.c31 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()
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()
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()
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()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/audio/test_scripts/
Dvcp.sh14 printf "\n\n======== Running VCP Volume Renderer standalone (API) test =========\n\n"
26 printf "\n\n======== Running VCP Volume Renderer and VCP Volume Controller test =========\n\n"
/Zephyr-latest/tests/subsys/fs/common/
Dtest_fs_mount_flags.c30 /* Test FS_MOUNT_FLAG_READ_ONLY on non-formatted volume*/ in test_fs_mount_flags()
36 /* Format volume and add some files/dirs to check read-only flag */ in test_fs_mount_flags()
39 TC_PRINT("Mount again to format volume\n"); in test_fs_mount_flags()
52 /* Check fs operation on volume mounted with FS_MOUNT_FLAG_READ_ONLY */ in test_fs_mount_flags()
/Zephyr-latest/tests/subsys/fs/fat_fs_api/src/
Dtest_fat_fs.c17 TC_PRINT("Error getting volume stats [%d]\n", res); in test_statvfs()
24 TC_PRINT("Volume size in f_frsize units = %lu\n", stat.f_blocks); in test_statvfs()
/Zephyr-latest/tests/subsys/fs/fat_fs_dual_drive/src/
Dtest_fat.h11 /* Make sure to match the drive name to ELM FAT Lib volume strings */
17 /* Make sure to match the drive name to ELM FAT Lib volume strings */

12345