I'm trying to output sound through the MAX98357A chip.
Pinout from linkit to the IC is as follows:
VCC -> SD_MODE
I2S_WS -> LRCLK
I2S_CLK -> BCLK
I2S_SDO -> DIN
output is going to a small 2W 8Ω speaker
From there, I am using both WAV (aplay) and MP3 (madplay) files (Alarm08.wav from windows is my test sound)
I haven't been able to get it to output anything. In many cases, it mentions a buffer overrun. But in cases where I get no errors I still don't hear anything. I've heard there is something about the I2S operating in some kind of slave mode and waiting for a clock from the DAC? I wouldn't know how to get the DAC to do this as there is no "slave" or "master" modes mentioned in the chip's documentation.