Skip to content

Docs/i2s clarify - #22944

Merged
xiaoxiang781216 merged 3 commits into
apache:masterfrom
watersRand:docs/i2s-clarify
Dec 6, 2026
Merged

xiaoxiang781216 merged 3 commits into
apache:masterfrom
watersRand:docs/i2s-clarify

Conversation

@watersRand

Copy link
Copy Markdown
Contributor

Summary

Addresses #11081.

  • Expand Documentation/os/drivers/character/i2s.rst from a stub reference into
    structured reStructuredText documentation covering the I2S driver model
    (struct i2s_dev_s and struct i2s_ops_s), I2S_* access macros,
    asynchronous transfer behavior, i2schar_register() character test driver,
    I2SIOC_* ioctl commands, and hardware/driver caveats based on
    include/nuttx/audio/i2s.h.
  • Fix comment typos in include/nuttx/audio/i2s.h.

Impact

  • Users: Adds clearer reference documentation and usage examples for I2S
    ioctl commands, macros, and the i2schar test driver.
  • Build process: None to firmware builds; updates Sphinx reStructuredText
    documentation under Documentation/.
  • Hardware: None.
  • Documentation: Expands Documentation/os/drivers/character/i2s.rst
    (tracked under issue Documentation: blank pages in documentation #11081).
  • Security: None.
  • Compatibility: None; header comment typo fixes and documentation only.

Testing

  • Host machine: Fedora Linux (x86_64), building Documentation/ with
    Sphinx (make html / sphinx-autobuild).

  • Boards / targets: Documentation and header comment changes (no target
    board runtime change).

  • Verification & logs:

    • Verified RST formatting and built HTML output via make -C Documentation html
      with zero warnings or errors after fixing heading overline/underline lengths.
    • Inspected rendered i2s.html output in the browser to check section layout,
      code blocks, and readability.
    • Checked include/nuttx/audio/i2s.h with ./tools/nxstyle.

    Sample Sphinx build check:

    $ make -C Documentation html
    # Completed with exit code 0 and no warnings treated as errors
    

watersRand and others added 3 commits December 5, 2026 19:02
Addresses apache#11081.

Document struct i2s_dev_s, struct i2s_ops_s, I2S_* macros, async transfers, i2schar_register(), and I2SIOC_* ioctl commands from include/nuttx/audio/i2s.h.

Signed-off-by: watersRand <bramwelbarack89@gmail.com>
Rename the second I2S_RXCHANNELS comment block to I2S_TXCHANNELS and
correct 'data with' to 'data width'. Comment-only change.

Signed-off-by: watersRand <bramwelbarack89@gmail.com>
@github-actions github-actions Bot added Area: Documentation Improvements or additions to documentation Size: M The size of the change in this PR is medium Area: Audio labels Dec 5, 2026
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

@xiaoxiang781216
xiaoxiang781216 merged commit 681ee48 into apache:master Dec 6, 2026
56 of 60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Audio Area: Documentation Improvements or additions to documentation Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants