This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 580413a82439001431c6d38c0837df2642eda527 Author: zhaozhenghang <[email protected]> AuthorDate: Mon Oct 19 19:29:53 2026 +0800 !audio: widen ac_chmap to 32 bits An 8-bit channel map cannot describe a device with more than eight channels, such as a microphone array that adds digital microphones to the analog ones. Make ac_chmap a uint32_t, and drop the unused reserved byte after it. The in-tree users only assign ac_chmap, so they build unchanged. BREAKING CHANGE: struct audio_caps_s, and struct audio_caps_desc_s that embeds it, change size, and every member after ac_chmap moves (ac_format from offset 6 to 8), so drivers and applications built against the old header no longer match the kernel. The reserved member is gone. Quick fix: rebuild the kernel and every application that includes nuttx/audio/audio.h, and widen any local copy of the channel map to uint32_t. Signed-off-by: zhaozhenghang <[email protected]> --- include/nuttx/audio/audio.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/nuttx/audio/audio.h b/include/nuttx/audio/audio.h index 00dff6f8a72..7bcd690b1a4 100644 --- a/include/nuttx/audio/audio.h +++ b/include/nuttx/audio/audio.h @@ -709,9 +709,8 @@ struct audio_caps_s uint8_t ac_subtype; /* Capabilities sub-type, if needed */ uint8_t ac_channels; /* Number of channels (1, 2, 3, ... 15) upper 4 bits for minimum channels, * lower 4 bits for maximum channels */ - uint8_t ac_chmap; /* Channel map, each ch for each bit, + uint32_t ac_chmap; /* Channel map, each ch for each bit, * zero means don't care */ - uint8_t reserved; /* Reserved for future use */ /* Audio data format(s) for this device */
