How to change the output_i2s2.cpp file to make it left-justified I2S

AmosR

New member
I am using a DAC that requires left-justified I2S format. Is it possible to modify the output_i2s2.cpp file.
I think I just need to change the data channel timing to be in sync with the LRCLK, but I'm not sure how to achieve this.
 

Attachments

  • Näyttökuva 2024-2-27 kello 12.10.17.png
    Näyttökuva 2024-2-27 kello 12.10.17.png
    555.2 KB · Views: 12
Thank you so much for your help! It seems like tweaking the register settings in AudioOutputI2S2::config_i2s(void) did the trick. I'll double-check with a logic analyzer to make sure everything's running smoothly.
 
Back
Top