Skip to content

2.2.8 - #262

Open
TobiasRoeddiger wants to merge 66 commits into
mainfrom
2.2.8
Open

2.2.8#262
TobiasRoeddiger wants to merge 66 commits into
mainfrom
2.2.8

Conversation

@TobiasRoeddiger

Copy link
Copy Markdown
Member

No description provided.

@TobiasRoeddiger TobiasRoeddiger changed the title update version 2.2.8 Jul 31, 2026
@github-actions

github-actions Bot commented Jul 31, 2026

Copy link
Copy Markdown

✅ Unit tests passed

2 passed, 0 failed/error, 0 skippedview workflow run

Test scenario Platform Result
ring_buffer/openearable.unit.ring_buffer native_sim/native/64 ✅ passed
sensor_component/openearable.unit.sensor_component native_sim/native/64 ✅ passed

Download the unit-test-results artifact for full Twister reports and logs.

JakeSW and others added 12 commits July 31, 2026 11:22
Define UUID 0x1410df99 for DMIC gain control characteristic.
This allows BLE clients to adjust the ADAU1860 digital microphone
gain over Bluetooth.
Add public methods mic_gain_write() and mic_gain_read() to safely
access DMIC_VOL0 and DMIC_VOL1 registers. These methods encapsulate
the private register access functions and allow external code to
control microphone gain for channels 0 and 1.
Implement hw_codec_mic_gain_set(), hw_codec_mic_gain_get_left(),
and hw_codec_mic_gain_get_right() functions. These provide a
hardware abstraction layer for controlling ADAU186x DMIC_VOL
registers with 0.375 dB step resolution across a +24 dB to mute
range.
Add read_dmic_gain() and write_dmic_gain() handlers for the
BT_UUID_DMIC_GAIN characteristic. This allows BLE clients to
read and adjust DMIC gain for left and right channels using
a 2-byte payload [left_reg, right_reg].
Add comprehensive documentation for DMIC microphone gain control
including:
- Hardware register mapping and gain calculations
- BLE protocol specification
- Usage examples
- C/C++ API reference
- Implementation details

Replaces deprecated PDM terminology with DMIC to accurately
reflect the ADAU1860 digital microphone interface.
@github-actions

Copy link
Copy Markdown

Build output available:
openearable_v2_firmware.elf.zip
openearable_v2_fota.zip

Ruben-Lohberg and others added 23 commits September 7, 2026 11:51
The connection callback returns void, so stop processing with a plain return after a parameter-update failure instead of attempting to return the error value.
Initialize the application LED state and BMP388 FIFO sample data before they are passed to downstream code. This prevents uninitialized fields from being observed on valid error and partial-frame paths.
Only adjust and consume the FIFO length after reading it successfully. This avoids updating FIFO state or issuing a read with an undefined length after an I/O failure.
Return before selecting the Earable button when the callback does not contain its pin. This prevents dereferencing an uninitialized button pointer for an unexpected interrupt mask.
Reuse the released TX buffer when no alternative buffer is available so tx_buf cannot remain null before memset().
Validate the stereo channel count before consuming both channel pointers. If encoding fails, drop the frame instead of entering the fatal error path, log once until recovery, and never send stale encoded data.
Initialize the conditionally compiled scan parameter to NULL and describe the chip-ID copy in terms of its actual alignment and aliasing constraints.
Continue through volume and mute restoration when a codec step fails, return the first error, and only persist the requested mode after all hardware operations succeed.
Track the rare I2S underrun fallback where no alternate TX buffer is
available and the released TX buffer is reused as silence.

Log the first occurrence and then rate-limit later warnings so this
recovery path does not fail silently during testing.
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Build output available:
openearable_v2_firmware.elf.zip
openearable_v2_fota.zip

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Build output available:
openearable_v2_firmware.elf.zip
openearable_v2_fota.zip

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

CodeChecker static analysis

✅ No non-style issues found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants