Skip to content

doc: Add zephyr/include to the Doxygen input - #10971

Merged
lgirdwood merged 2 commits into
thesofproject:mainfrom
lgirdwood:doc-add-zephyr-include
Aug 30, 2026
Merged

doc: Add zephyr/include to the Doxygen input#10971
lgirdwood merged 2 commits into
thesofproject:mainfrom
lgirdwood:doc-add-zephyr-include

Conversation

@lgirdwood

Copy link
Copy Markdown
Member

What

Add zephyr/include to the Doxygen INPUT in doc/sof.doxygen.in.

Why

The Memory Allocation (alloc_api), PM Runtime (pm_runtime) and DMA
(sof_dma_drivers, sof_dma_copy_func) API doc groups stopped appearing in the
generated documentation when their headers were decoupled into zephyr/include/
during the RTOS split. The Doxygen INPUT still listed only src/include and
xtos/include, so those Zephyr-era headers were no longer scanned, and sof-docs
reported Cannot find group for all four.

These headers declare exactly those four groups and no others, with no
group-name overlap with xtos/include, so adding the directory recovers the
missing API docs without introducing duplicates.

Testing

Regenerated the Doxygen XML and rebuilt sof-docs against it: all four groups now
render, and the sof-docs warning count drops from 6 to 2 (the remaining two are
a pre-existing breathe limitation, unrelated to this change).

Companion PR

Supports thesofproject/sof-docs#520, whose strict (-W) documentation build
turns these Cannot find group warnings into errors. That PR's build stays red
until this change is merged; the two should land together.

Copilot AI review requested due to automatic review settings July 2, 2026 18:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the SOF Doxygen configuration to scan Zephyr-split headers again, restoring API groups that disappeared from generated documentation after the RTOS split.

Changes:

  • Add zephyr/include to the Doxygen INPUT paths so headers under that tree are scanned.
  • Add/expand Doxygen comments in module/generic.h for module adapter APIs and related macros/types.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 11 comments.

File Description
src/include/sof/audio/module_adapter/module/generic.h Adds extensive Doxygen annotations for module adapter/module APIs, macros, and enums.
doc/sof.doxygen.in Extends Doxygen INPUT to include @top_srcdir@/zephyr/include for documentation generation.

Comment thread src/include/sof/audio/module_adapter/module/generic.h Outdated
Comment thread src/include/sof/audio/module_adapter/module/generic.h Outdated
Comment thread src/include/sof/audio/module_adapter/module/generic.h Outdated
Comment thread src/include/sof/audio/module_adapter/module/generic.h Outdated
Comment thread src/include/sof/audio/module_adapter/module/generic.h Outdated
Comment thread src/include/sof/audio/module_adapter/module/generic.h Outdated
Comment thread src/include/sof/audio/module_adapter/module/generic.h Outdated
Comment thread src/include/sof/audio/module_adapter/module/generic.h Outdated
Comment thread src/include/sof/audio/module_adapter/module/generic.h Outdated
Comment thread src/include/sof/audio/module_adapter/module/generic.h Outdated
lrgirdwo and others added 2 commits August 30, 2026 16:49
The Memory Allocation (alloc_api), PM Runtime (pm_runtime) and DMA
(sof_dma_drivers, sof_dma_copy_func) API groups stopped appearing in the
generated documentation when their headers were decoupled into
zephyr/include during the RTOS split. The Doxygen INPUT still listed only
src/include and xtos/include, so those Zephyr-era headers were no longer
scanned and sof-docs reported "Cannot find group" for all four.

Add zephyr/include to the INPUT. These headers declare exactly those four
groups and no others, with no group-name overlap with xtos/include, so
this recovers the missing API docs without introducing duplicates.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Fix parameter name mismatch in module_driver_heap_remove() and
correct struct field documentation for vmh_block_bundle_descriptor
and vmh_heap_config so Doxygen parses zephyr/include cleanly without
warnings.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
@lgirdwood
lgirdwood force-pushed the doc-add-zephyr-include branch from 8ce57b5 to 16ea79f Compare August 30, 2026 15:49
@lgirdwood

Copy link
Copy Markdown
Member Author

All issues, fixed SOF docs HEAD now passing with ubuntu 26.04 and with orphaned packages removed/replaced.

@lgirdwood
lgirdwood merged commit b6142ca into thesofproject:main Aug 30, 2026
42 of 43 checks passed
@lgirdwood
lgirdwood deleted the doc-add-zephyr-include branch August 30, 2026 17:41
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.

3 participants