Skip to content

Fix left justified implementation on I2SIn with external clock - #11170

Merged
dhalbert merged 1 commit into
adafruit:mainfrom
relic-se:patch-1
Aug 4, 2026
Merged

Fix left justified implementation on I2SIn with external clock#11170
dhalbert merged 1 commit into
adafruit:mainfrom
relic-se:patch-1

Conversation

@relic-se

@relic-se relic-se commented Aug 3, 2026

Copy link
Copy Markdown

The newly merged I2SIn bidirectional support implements left justified operation incorrectly when it is acting as a secondary device (external_clock=True). This update fixes that by inverting the logic in the PIO generation method so that normal operation occurs one clock cycle offset from the word clock and left justified occurs immediately when the word clock changes.

@relic-se
relic-se marked this pull request as ready for review August 3, 2026 18:14
@dhalbert
dhalbert requested a review from FoamyGuy August 3, 2026 19:25

@FoamyGuy FoamyGuy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the fix!

This change is correct, I got it swapped around during development. I tested this branch successfully on the EP-2350.

I will submit follow up PRs in the driver and guide project code to account for this change.

@dhalbert
dhalbert merged commit 223f24b into adafruit:main Aug 4, 2026
173 checks passed
@relic-se
relic-se deleted the patch-1 branch August 4, 2026 14:24
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.

3 participants