Skip to content

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 eightycc, jepler and tannewt 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