This is an automated email from the ASF dual-hosted git repository.
sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new 3d9ad3469 apps/auracast: Fix AUDIO_USB restrictions
3d9ad3469 is described below
commit 3d9ad34691b662c8b32a3aba4c9f28537c1d5b1c
Author: Szymon Janc <[email protected]>
AuthorDate: Mon Oct 19 22:17:44 2026 +0200
apps/auracast: Fix AUDIO_USB restrictions
The restrictions were meant to require 48kHz sampling frequency and
10ms frame duration when USB audio is enabled, but:
- '(LC3_SAMPLING_FREQ == 48000) if 0' was enforced only when AUDIO_USB
was disabled, so any sampling frequency was accepted with USB audio
enabled and non-48kHz configurations were rejected without it.
- '(LC3_FRAME_DURATION == 10000) is 0' worked only because newt ignored
the trailing "is 0"; newer newt rejects it as an illegal expression.
Use "if 1" for both, so that they apply when AUDIO_USB is enabled.
Assisted-by: Claude:claude-opus-5-5
---
apps/auracast/syscfg.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/auracast/syscfg.yml b/apps/auracast/syscfg.yml
index 419421712..f0d64e289 100644
--- a/apps/auracast/syscfg.yml
+++ b/apps/auracast/syscfg.yml
@@ -21,8 +21,8 @@ syscfg.defs:
value: 1
restrictions:
# For now, LC3 encoded audio data, with 48kHz sample rate is
supported only.
- - '(LC3_SAMPLING_FREQ == 48000) if 0'
- - '(LC3_FRAME_DURATION == 10000) is 0'
+ - '(LC3_SAMPLING_FREQ == 48000) if 1'
+ - '(LC3_FRAME_DURATION == 10000) if 1'
ISO_HCI_FEEDBACK:
description: Enable HCI feedback for resampler. This reduces jitter
between USB and ISO.