-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Fix RP2xxx I2SOut reversed channels #10250
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One extra change and please add comments in the pio files that explain what the permutation is. Thanks!
CI is weird, as of this moment, it has only done the doc build. |
CI now OK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple more comments to hopefully make it easier to maintain.
@tannewt this is ready for review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Thank you all! |
The left and right stereo channels were reversed for most cases of
audiobusio.I2SOut
onraspberrypi
. See the table in #10230 (comment) for details.This was not a problem for
audiopwmio.PWMAudioOut
, and not a problem for Espressif on SAMDI2SOut
. The problem was that the data was in the opposite channel order expected. Interestingly, the sample programinFixed by flipping the LRCLK in three out of the four PIO programs. Also I put the PIO programs into separate files which are checked in, for convenience. They are not yet built automatically -- we could do that later.
Tested on a Metro RP2040 with an Adafruit Speaker Bonnet.
@VinceParsons FYI