/Zephyr-latest/subsys/bluetooth/audio/ |
D | Kconfig.vocs | 1 # 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 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 [all …]
|
D | vcp_vol_rend.c | 5 * 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 …]
|
D | ascs.c | 6 * Copyright (c) 2022-2023 Nordic Semiconductor ASA 9 * SPDX-License-Identifier: Apache-2.0 63 BUILD_ASSERT(CONFIG_BT_ASCS_MAX_ACTIVE_ASES <= MAX(MAX_ASES_SESSIONS, 65 "Max active ASEs are set to more than actual number of ASEs or ISOs"); 69 #define ASE_ID(_ase) ase->ep.status.id 105 MAX(MIN_CONFIG_STATE_SIZE + CONFIG_BT_AUDIO_CODEC_CFG_MAX_DATA_SIZE, \ 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() [all …]
|
/Zephyr-latest/dts/bindings/usb/ |
D | usb-audio-feature-volume.yaml | 2 # 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/ |
D | app.overlay | 4 * 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/ |
D | app.overlay | 4 * 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/samples/bluetooth/hap_ha/src/ |
D | vcp_vol_renderer.c | 2 * @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/fs/ |
D | Kconfig.fatfs | 4 # SPDX-License-Identifier: Apache-2.0 19 bool "Read-only support for all volumes" 22 Select this when using FAT for read-only access to slightly 37 bool "Allow formatting volume when mounting fails" 42 a volume if no file system is found. 56 int "Max number of entries in FAT FS root directory" 78 FIL is defined in ff.h of ELM FAT driver, and is pre-allocated 79 at compile-time. 88 DIR is defined in ff.h of ELM FAT driver, and is pre-allocated 89 at compile-time. [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | vcp_vol_rend.c | 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() [all …]
|
D | vcp_vol_ctlr.c | 5 * 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/boards/hardkernel/odroid_go/ |
D | odroid_go_procpu.dts | 4 * SPDX-License-Identifier: Apache-2.0 6 /dts-v1/; 9 #include "odroid_go-pinctrl.dtsi" 11 #include <zephyr/dt-bindings/input/input-event-codes.h> 14 model = "ODROID-GO Game Kit PROCPU"; 20 zephyr,shell-uart = &uart0; 22 zephyr,code-partition = &slot0_partition; 24 zephyr,bt-hci = &esp32_bt_hci; 28 compatible = "gpio-leds"; 36 compatible = "gpio-keys"; [all …]
|
/Zephyr-latest/drivers/audio/ |
D | tlv320dac310x.c | 4 * SPDX-License-Identifier: Apache-2.0 25 #define CODEC_OUTPUT_VOLUME_MIN (-78 * 2) 66 const struct codec_driver_config *const dev_cfg = dev->config; in codec_initialize() 68 if (!device_is_ready(dev_cfg->bus.bus)) { in codec_initialize() 70 return -ENODEV; in codec_initialize() 73 if (!gpio_is_ready_dt(&dev_cfg->reset_gpio)) { in codec_initialize() 75 return -ENODEV; in codec_initialize() 84 const struct codec_driver_config *const dev_cfg = dev->config; in codec_configure() 87 if (cfg->dai_type != AUDIO_DAI_TYPE_I2S) { in codec_configure() 89 return -EINVAL; in codec_configure() [all …]
|
/Zephyr-latest/subsys/bluetooth/controller/include/ |
D | ll_feat.h | 2 * Copyright (c) 2016-2021 Nordic Semiconductor ASA 5 * SPDX-License-Identifier: Apache-2.0 208 MAX(CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE, \ 211 #define BT_CTLR_ISO_TX_BUFFER_SIZE MAX(CONFIG_BT_CTLR_ISO_TX_BUFFER_SIZE, \ 219 (BT_CTLR_ISO_TX_BUFFER_SIZE - \ 230 (BT_CTLR_ISO_TX_BUFFER_SIZE - \ 261 * Core Spec V5.3 Volume 6, Part B, chapter 4.6
|
/Zephyr-latest/tests/subsys/fs/fs_api/src/ |
D | test_fs_dir_file.c | 5 * SPDX-License-Identifier: Apache-2.0 166 zassert_equal(ret, -EBUSY, "Re-mount using same data should have failed"); in test_mount() 242 zassert_not_equal(ret, 0, "Get volume info by no-exist path"); in ZTEST() 246 zassert_equal(ret, -ENOTSUP, "fs has no statvfs functionality"); in ZTEST() 249 zassert_equal(ret, 0, "Error getting volume stats"); in ZTEST() 253 TC_PRINT("Volume size in f_frsize units = %lu\n", stat.f_blocks); in ZTEST() 330 TC_PRINT("Double-open using occupied fs_dir_t object\n"); in test_opendir() 332 zassert_equal(ret, -EBUSY, "Expected -EBUSY, got %d", ret); in test_opendir() 337 TC_PRINT("Double-open using occupied fs_dir_t object\n"); in test_opendir() 339 zassert_equal(ret, -EBUSY, "Expected -EBUSY, got %d", ret); in test_opendir() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | uuid.h | 6 * Copyright (c) 2015-2016 Intel Corporation 8 * SPDX-License-Identifier: Apache-2.0 31 /** UUID type 16-bit. */ 33 /** UUID type 32-bit. */ 35 /** UUID type 128-bit. */ 39 /** Size in octets of a 16-bit UUID */ 42 /** Size in octets of a 32-bit UUID */ 45 /** Size in octets of a 128-bit UUID */ 56 /** UUID value, 16-bit in host endianness. */ 63 /** UUID value, 32-bit in host endianness. */ [all …]
|
/Zephyr-latest/tests/posix/fs/src/ |
D | test_fs_file.c | 4 * SPDX-License-Identifier: Apache-2.0 13 int file = -1; 40 file = -1; in test_file_write() 48 file = -1; in test_file_write() 53 TC_PRINT("Unable to complete write. Volume full.\n"); in test_file_write() 56 file = -1; in test_file_write() 74 file = -1; in test_file_read() 82 file = -1; in test_file_read() 89 TC_PRINT("Error - Data read does not match data written\n"); in test_file_read() 94 /* Now test after non-zero lseek. */ in test_file_read() [all …]
|
/Zephyr-latest/doc/releases/ |
D | release-notes-3.5.rst | 38 * 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 …]
|
D | release-notes-2.7.rst | 17 * Support for M-Profile Vector Extensions (MVE) on ARMv8.1-M 18 * Improved thread safety for Newlib and C++ on SMP-capable systems 20 * New Action-based Power Management API 23 * Linker Support for Tightly-Coupled Memory in RISC-V 25 * Support for extended PCI / PCIe capabilities, improved MIS-X support 33 * The kernel now supports both 32- and 64-bit architectures 36 * We added support for Point-to-Point Protocol (PPP) 37 * We added support for UpdateHub, an end-to-end solution for over-the-air device updates 38 * We added support for ARM Cortex-R Architecture 40 * Expanded support for ARMv6-M architecture [all …]
|
D | release-notes-2.6.rst | 13 * 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 …]
|
/Zephyr-latest/include/zephyr/bluetooth/classic/ |
D | sdp.h | 8 * SPDX-License-Identifier: Apache-2.0 123 * Possible values for attribute-id are listed below. 160 #define BT_SDP_ATTR_REMOTE_AUDIO_VOLUME_CONTROL 0x0302 /**< Remote Audio Volume Control */ 164 #define BT_SDP_ATTR_FAX_CLASS2_SUPPORT 0x0304 /**< Fax Class 2 Support (vendor-specific)*/ 172 #define BT_SDP_ATTR_MAX_NET_ACCESSRATE 0x030c /**< Max Net Access Rate */ 243 * The size are computed post-facto in the API and are not known apriori. 247 #define BT_SDP_UINT8 0x08 /**< Unsigned 8-bit integer */ 248 #define BT_SDP_UINT16 0x09 /**< Unsigned 16-bit integer */ 249 #define BT_SDP_UINT32 0x0a /**< Unsigned 32-bit integer */ 250 #define BT_SDP_UINT64 0x0b /**< Unsigned 64-bit integer */ [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | cap_acceptor_test.c | 2 * Copyright (c) 2022-2023 Nordic Semiconductor ASA 4 * SPDX-License-Identifier: Apache-2.0 44 * of the ISO Interval minus 10 ms (max. advertising random delay). This is 45 * required to place the AUX_ADV_IND PDUs in a non-overlapping interval with the 98 printk("type %u len %u\n", data->type, data->data_len); in subgroup_data_func_cb() 100 if (!valid_metadata_type(data->type, data->data_len)) { in subgroup_data_func_cb() 104 if (data->type == BT_AUDIO_METADATA_TYPE_STREAM_CONTEXT) { in subgroup_data_func_cb() 105 if (data->data_len != 2) { /* Stream context size */ in subgroup_data_func_cb() 139 if (ret != 0 && ret != -ECANCELED) { in valid_subgroup_metadata_cb() 195 sink, biginfo->encryption ? "" : "out"); in syncable_cb() [all …]
|