Home
last modified time | relevance | path

Searched +full:volume +full:- +full:min (Results 1 – 14 of 14) sorted by relevance

/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 …]
/Zephyr-latest/samples/subsys/usb/audio/headset/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
9 compatible = "usb-audio-hs";
10 mic-feature-mute;
11 mic-channel-l;
12 mic-channel-r;
14 hp-feature-mute;
15 hp-channel-l;
16 hp-channel-r;
18 hp-feature-volume;
19 volume-max = <0x0500>;
[all …]
/Zephyr-latest/samples/subsys/usb/audio/headphones_microphone/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
9 compatible = "usb-audio-hp";
10 feature-mute;
11 channel-l;
12 channel-r;
14 feature-volume;
15 volume-max = <0x0500>;
16 volume-min = <0xBA00>;
17 volume-res = <0x100>;
20 compatible = "usb-audio-mic";
[all …]
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dtestfs_mount.c4 * SPDX-License-Identifier: Apache-2.0
18 mp->flags |= FS_MOUNT_FLAG_NO_FORMAT; in ZTEST()
23 /* Test FS_MOUNT_FLAG_READ_ONLY on non-formatted volume*/ in ZTEST()
24 mp->flags = FS_MOUNT_FLAG_READ_ONLY; in ZTEST()
29 /* Format volume and add some files/dirs to check read-only flag */ in ZTEST()
30 mp->flags = 0; in ZTEST()
32 TC_PRINT("Mount again to format volume\n"); in ZTEST()
39 /* Check fs operation on volume mounted with FS_MOUNT_FLAG_READ_ONLY */ in ZTEST()
40 mp->flags = FS_MOUNT_FLAG_READ_ONLY; in ZTEST()
41 TC_PRINT("Mount as read-only\n"); in ZTEST()
[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()
55 printk("AICS inst %p gain settings units %u, min %d, max %d\n", in aics_gain_setting_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()
/Zephyr-latest/subsys/bluetooth/audio/
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))
49 ((uint8_t)MIN(UINT8_MAX, (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()
[all …]
Dvocs_client.c1 /* Bluetooth VOCS - Volume Offset Control Service - Client */
4 * Copyright (c) 2021-2022 Nordic Semiconductor ASA
6 * SPDX-License-Identifier: Apache-2.0
60 uint16_t handle = params->value_handle; in vocs_client_notify_handler()
78 if (handle == inst->state_handle) { in vocs_client_notify_handler()
79 if (length == sizeof(inst->state)) { in vocs_client_notify_handler()
80 memcpy(&inst->state, data, length); in vocs_client_notify_handler()
81 LOG_DBG("Inst %p: Offset %d, counter %u", inst, inst->state.offset, in vocs_client_notify_handler()
82 inst->state.change_counter); in vocs_client_notify_handler()
83 if (inst->cb && inst->cb->state) { in vocs_client_notify_handler()
[all …]
Dascs.c6 * Copyright (c) 2022-2023 Nordic Semiconductor ASA
9 * SPDX-License-Identifier: Apache-2.0
69 #define ASE_ID(_ase) ase->ep.status.id
104 MIN(BT_ATT_MAX_ATTRIBUTE_LEN, \
112 (BT_ATT_BUF_SIZE - NTF_HEADER_SIZE) >= ASE_BUF_SIZE ||
113 DIV_ROUND_UP(ASE_BUF_SIZE, (BT_ATT_BUF_SIZE - NTF_HEADER_SIZE)) <=
133 switch (rsp->code) { in ascs_app_rsp_warn_valid()
144 LOG_WRN("Invalid application error code: %u", rsp->code); in ascs_app_rsp_warn_valid()
149 switch (rsp->code) { in ascs_app_rsp_warn_valid()
154 if (rsp->reason != BT_BAP_ASCS_REASON_NONE) { in ascs_app_rsp_warn_valid()
[all …]
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dvcp_vol_rend_test.c5 * SPDX-License-Identifier: Apache-2.0
58 static void vcs_state_cb(struct bt_conn *conn, int err, uint8_t volume, uint8_t mute) in vcs_state_cb() argument
65 g_volume = volume; in vcs_state_cb()
111 strncpy(g_vocs_desc, description, sizeof(g_vocs_desc) - 1); in vocs_description_cb()
112 g_vocs_desc[sizeof(g_vocs_desc) - 1] = '\0'; in vocs_description_cb()
175 strncpy(g_aics_desc, description, sizeof(g_aics_desc) - 1); in aics_description_cb()
176 g_aics_desc[sizeof(g_aics_desc) - 1] = '\0'; in aics_description_cb()
475 const int8_t expected_gain = g_aics_gain_max - 1; in test_aics_gain_set()
670 invalid_offset = BT_VOCS_MIN_OFFSET - 1; in test_vocs_state_set()
776 vcp_register_param.volume = 100; in test_register()
[all …]
/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()
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()
[all …]
Dvcp_vol_ctlr.c5 * Copyright (c) 2020-2022 Nordic Semiconductor ASA
7 * SPDX-License-Identifier: Apache-2.0
109 uint8_t volume, uint8_t mute) in vcs_state_cb() argument
114 shell_print(ctx_shell, "VCP volume %u, mute %u", volume, mute); in vcs_state_cb()
205 "AICS inst %p gain settings units %u, min %d, max %d", in vcs_aics_gain_setting_cb()
357 return -ENOEXEC; in cmd_vcp_vol_ctlr_discover()
375 return -ENOEXEC; in cmd_vcp_vol_ctlr_state_get()
393 return -ENOEXEC; in cmd_vcp_vol_ctlr_flags_get()
411 return -ENOEXEC; in cmd_vcp_vol_ctlr_volume_down()
430 return -ENOEXEC; in cmd_vcp_vol_ctlr_volume_up()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/include/
Dll_feat.h2 * Copyright (c) 2016-2021 Nordic Semiconductor ASA
5 * SPDX-License-Identifier: Apache-2.0
44 #define LL_LENGTH_OCTETS_TX_MAX MIN(CONFIG_BT_BUF_ACL_TX_SIZE, 251U)
206 #define BT_CTLR_ISO_TX_BUFFER_SIZE MIN((CONFIG_BT_ISO_TX_MTU + \
218 #define LL_CIS_OCTETS_TX_MAX MIN(CONFIG_BT_CTLR_CONN_ISO_PDU_LEN_MAX, \
219 (BT_CTLR_ISO_TX_BUFFER_SIZE - \
229 #define LL_BIS_OCTETS_TX_MAX MIN(CONFIG_BT_CTLR_ADV_ISO_PDU_LEN_MAX, \
230 (BT_CTLR_ISO_TX_BUFFER_SIZE - \
261 * Core Spec V5.3 Volume 6, Part B, chapter 4.6
/Zephyr-latest/doc/releases/
Drelease-notes-3.5.rst38 * CVE-2023-3725 `Zephyr project bug tracker GHSA-2g3m-p6c7-8rr3
39 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-2g3m-p6c7-8rr3>`_
41 * CVE-2023-4257 `Zephyr project bug tracker GHSA-853q-q69w-gf5j
42 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-853q-q69w-gf5j>`_
44 * CVE-2023-4258 `Zephyr project bug tracker GHSA-m34c-cp63-rwh7
45 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-m34c-cp63-rwh7>`_
47 * CVE-2023-4259 `Zephyr project bug tracker GHSA-gghm-c696-f4j4
48 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gghm-c696-f4j4>`_
50 * CVE-2023-4260 `Zephyr project bug tracker GHSA-gj27-862r-55wh
51 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gj27-862r-55wh>`_
[all …]
Drelease-notes-2.6.rst13 * Added support for 64-bit ARCv3
14 * Split ARM32 and ARM64, ARM64 is now a top-level architecture
15 * Added initial support for Arm v8.1-m and Cortex-M55
22 https://github.com/zephyrproject-rtos/example-application
34 * CVE-2021-3581: Under embargo until 2021-09-04
41 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_.
46 * Driver APIs now return ``-ENOSYS`` if optional functions are not implemented.
47 If the feature is not supported by the hardware ``-ENOTSUP`` will be returned.
48 Formerly ``-ENOTSUP`` was returned for both failure modes, meaning this change
194 * Added support for null pointer dereferencing detection in Cortex-M.
[all …]