Quantcast
Viewing all articles
Browse latest Browse all 5320

Interfacing (DSI, CSI, I2C, etc.) • I2S Master Mode with Pi5

Hi,

I need to attach an ADC as I2S master to the Pi5.
This means the Pi should listen on PCM_CLK to a MCLK provided by the ADC.

So far I managed to use the ADC as I2S slave using this overlay:
https://github.com/PaulCreaserML/rpi-i2 ... 2s-mic.dts
But I need to use the ADC as I2S master...

In the past I managed to do this with a Pi4 by following this guide:
https://learn.adafruit.com/adafruit-i2s ... iring-test

And changing from slave to master mode in snd-i2smic-rpi.c

Code:

.daifmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS.daifmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBM_CFM
So I tried to install the adafruit libraries on Pi5. But record -l did not show anything.
After switching the SD card to Pi4 everything works fine. But I need to use Pi5.

Any help is greatly appreciated!

Statistics: Posted by Matze98 — Sun May 19, 2024 9:51 pm



Viewing all articles
Browse latest Browse all 5320

Trending Articles