Skip to content

Conversation

@michal-chvatal
Copy link

This PR introduces get_caps() API to DMIC, I2S, and Codec subsystems, enabling
drivers to report their audio capabilities such as supported sample rates, bit widths,
channel counts, buffer requirements, and frame timing.

It implements the API for MCUX I2S Flexcomm, DMIC, and WM8904 audio drivers.

It also introduces common audio definitions in audio_caps.h to unify capability
flags across subsystems.

Changes are related to new MediaPipe library.

Introduce `get_caps()` API to DMIC, I2S, and Codec subsystems to expose
driver-specific audio capabilities such as supported sample rates,
bit widths, channel counts, buffer requirements, and frame timing.

Introduce common audio definitions in `audio_caps.h` to unify capability
flags across subsystems.

Signed-off-by: Michal Chvatal <[email protected]>
Implement the `get_caps()` API for MCUX I2S Flexcomm, DMIC, and
WM8904 audio drivers to expose driver-specific capabilities
including supported sample rates, bit widths, channel counts, and
buffer requirements.

All drivers set temporary 10ms minimum frame interval as workaround
for MediaPipe library compatibility.

Signed-off-by: Michal Chvatal <[email protected]>
Changes affect:
- drivers: i2s_mcux_flexcomm, dmic_mcux and wm8904
- audio subsystem headers: i2s.h, codec.h, dmic.h

No functional changes, formatting improvements only.

Signed-off-by: Michal Chvatal <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2025

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants