Has anyone successfully implemented I2S on the M-SOM boards (Realtek RTL8722DM MCU)? I know the Ameba SDK has some nice interfaces (include ACC), but I am not sure how or even if I can utilize it.
any help would be appreciated.
Has anyone successfully implemented I2S on the M-SOM boards (Realtek RTL8722DM MCU)? I know the Ameba SDK has some nice interfaces (include ACC), but I am not sure how or even if I can utilize it.
any help would be appreciated.
There is no implementation at this time, but it should be possible on the M-SoM.
See the Microphone_PDM library for how to access the hardware audio features on the RTL872x. It's not exactly the same, but the basic process is the same for accessing the RTL SDK.
Thank you. I've pulled in the I2S API from the SDK and made some process after reviewing the PDM repo. I'll share it out if I get it working.
It seems possible. I got some bits out from one of the RTL872x SDK code samples on the M-SoM (Muon). The top channel is CLK, the middle is WS, and the bottom is DOUT.
The top channel is 256 kHz, and I was outputting the 8 kHz bird sounds sample, 2 channels, 16-bit, and 8 * 2 * 16 = 256 so that adds up.
Oh great! do you mind sharing the project or which code samples you used? Thank you.
There's almost certainly stuff here that is not necessary, but this is what I hacked together to test it.
The runTest() function that has the important code is in rtl_i2s.c.
That's a Muon with the Waveshare WM8960 audio HAT (for the Raspberry Pi) and I was able to generate sound and control the speaker volume, so it's definitely possible! No working library yet, but the I2S hardware definitely works.