Content-Length: 253056 | pFad | https://github.com/adafruit/circuitpython/pull/10182

AF Disallow identical AudioOut channel pins. Work around ESP-IDF ESP32-S2 bug that swaps DAC channels randomly. by dhalbert · Pull Request #10182 · adafruit/circuitpython · GitHub
Skip to content
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

Disallow identical AudioOut channel pins. Work around ESP-IDF ESP32-S2 bug that swaps DAC channels randomly. #10182

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

dhalbert
Copy link
Collaborator

@dhalbert dhalbert commented Mar 26, 2025

Stumbled on espressif/esp-idf#11425 bug while testing. It causes the left and right channels to be swapped randomly on play, which was very confusing. Worked around by forcing a deinit/init on each play.

I also got confused because board.A0 and board.A1 are not consistently assigned to left/right channels. Added a documentation warning about this.

Shuffled code around a little in ports/espressif/common-hal/audioio/AudioOut.c to allow calling internal routines instead of common_hal routines.

Useful short test audio file: Spoken words "left channel", "right channel", "both channels":
left-right-longer-22050.wav.zip

FYI @MarshallMiller

…2 bug that swaps DAC channels randomly.

- Fixes adafruit#10003.

Stumbled on espressif/esp-idf#11425 bug while testing. It
causes the left and right channels to be swapped randomly on play, which was very confusing.
Worked around by forcing a deinit/init on each play.

Also got confused because board.A0 and board.A1 are not consistently assigned to left/right
channels. Added a documentation warning about this.
@dhalbert dhalbert requested review from tannewt, jepler and eightycc March 26, 2025 02:24
Copy link
Collaborator

@eightycc eightycc left a comment

Choose a reason for hiding this comment

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

Looks fine. I don't have merge authority.

@dhalbert dhalbert merged commit e172e15 into adafruit:9.2.x Mar 26, 2025
184 checks passed
@dhalbert dhalbert deleted the audioout-fixes branch March 26, 2025 16:11
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.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/adafruit/circuitpython/pull/10182

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy