Skip to content

Fix circular DMA (again) and small I2S improvements #1189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 21, 2024

Conversation

bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Feb 20, 2024

Originally, I just wanted to finally fix circular DMA but also added some I2S improvements (which are related)

  • fix available free buffer calculation for circular DMA
  • lift the circular DMA buffer min-size requirement
  • have a function to push into I2S DMA via a closure

Closes #1062

@bjoernQ
Copy link
Contributor Author

bjoernQ commented Feb 21, 2024

To make a review a bit easier and less painful: I updated https://github.com/bjoernQ/s3box-sound to point to my branch and updated it accordingly

@MabezDev
Copy link
Member

To make a review a bit easier and less painful: I updated https://github.com/bjoernQ/s3box-sound to point to my branch and updated it accordingly

Thank you! I spent too long trying to get something working locally for me :D. That was really useful thanks!

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

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

LGTM, the example provided is crisp now!

@bjoernQ bjoernQ added this pull request to the merge queue Feb 21, 2024
Merged via the queue into esp-rs:main with commit bc2f1a0 Feb 21, 2024
@bjoernQ bjoernQ deleted the fix/circular-dma-part-2 branch February 21, 2024 12:20
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.

Request: better handling of DMA buffers for realtime audio using I2S
2 participants