I’m trying to get sound working from my Jetson Nano (2GB). I’ve followed a few guides, but it seems like a lot of the content is a little outdated now, for example it seems that it’s not possible to enable i2s using jetson-io now rather than manually building device tree overlays. I followed this guide:
https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/hw_setup_jetson_io.html
My jetson-io.py
(which requires sudo
privileges) output now reads as follows, after a reboot:
=================== Jetson Expansion Header Tool ===================
| |
| |
| 3.3V ( 1) ( 2) 5V |
| i2c2 ( 3) ( 4) 5V |
| i2c2 ( 5) ( 6) GND |
| aud_mclk ( 7) ( 8) uartb |
| GND ( 9) (10) uartb |
| unused (11) (12) i2s4b |
| unused (13) (14) GND |
| unused (15) (16) unused |
| 3.3V (17) (18) unused |
| unused (19) (20) GND |
| unused (21) (22) unused |
| unused (23) (24) unused |
| GND (25) (26) unused |
| i2c1 (27) (28) i2c1 |
| unused (29) (30) GND |
| unused (31) (32) unused |
| unused (33) (34) GND |
| i2s4b (35) (36) unused |
| unused (37) (38) i2s4b |
| GND (39) (40) i2s4b |
| |
| |
| |
| Select one of the following options: |
Configure Jetson for compatible hardware
Configure 40-pin expansion header
Exit
I have an ES9023 DAC I’m trying to use, wired as follows:
--------------------------
| DAC | Jetson GPIO |
| 5V | 4 (5V) |
| GND | 6 (GND) |
| MCLK | 7 (AUD_MCLK) |
| BCK | 12 (SCLK) |
| LRCK | 35 (FS) |
| GND | 39 (GND) |
| DATA | 40 (DOUT) |
--------------------------
I then tried this, which is making no sound:
speaker-test -c2 -twav -D plughw:CARD=tegrasndt210ref,DEV=0
alsa looks like it’s configured for i2s4 by default:
pcm.!default {
type plug
slave {
pcm "hw:tegrasndt210ref,0"
channels 2
rate 48000
}
hint.description "Tegra APE Soundcard (tegrasndt210ref,0)"
}
I’ve tried other settings (and another DAC, PCM5102) but no sound at all… what am I doing wrong?!
Thanks,
Phill