Jetson Nano and I2S audio module MAX98357

I am trying to connect the audio module MAX98357.
This module one of the popular with Raspberry Pi projects.

I connected the module pins according to this:
LRC -> pin 35
BCLK -> pin 12
DIN -> pin 40
GND -> pin 6
Vin -> pin 2

Then updated my Jetson:

sudo apt-get install sox libsox-fmt-all - (for mp3 tracks)

Then configured the mixer:

amixer -c tegrasndt210ref cset name='I2S1 Mux' MVC1
amixer -c tegrasndt210ref cset name='MVC1 Mux' ADMAIF1
amixer -c tegrasndt210ref cset name='MVC1 Vol' 12000

And tested:

AUDIODEV=hw:tegrasndt210ref,0 play test.mp3

But no sound was out.

Do I miss something?

Hi josef.polin,

Could you refer to the Audio Troubleshooting at L4T document to see if can help?


On Jetson Nano the I2S interface on the 40-pin header is I2S4 and not I2S1 (see [0]). Therefore, you should not set the following …

In fact by default the I2S4 route should be configured. To undo the settings you have set, you should …

$ alsactl init tegrasndt210ref

After doing the above you should see that I2S4 is connected to the ADMAIF1 interface …

$ amixer -c tegrasndt210ref cget name='I2S4 Mux'
$ amixer -c tegrasndt210ref cget name='ADMAIF1 Mux'

Then you should just …

$ speaker-test -D hw:tegrasndt210ref,0 -c 2 -r 48000 -F S16_LE -t sine -f 500

Also I see that the MAX98357 has an SD_MODE pin that can place the device into shutdown and so you may wish to check that this pin is configured correctly.