On carrier board P2597, I want to enable I2S2, also named i2s5b.
The I2S1, is enabled by dts:
gpios = <
TEGRA_GPIO(B, 0) 0
TEGRA_GPIO(B, 1) 0
TEGRA_GPIO(B, 2) 0
TEGRA_GPIO(B, 3) 0
TEGRA_GPIO(BB, 0) 0
TEGRA_GPIO(BB, 3) 0
>;
status = “okay”;
when use command:
amixer -c 0 sset ‘I2S1 Mux’ ‘ADMAIF1’
aplay -Dhw:0,0 piano2.wav
Signals can be found on Expansion Header Pin.
For enable I2S2, modify dts like this:
gpios = <
TEGRA_GPIO(B, 0) 0
TEGRA_GPIO(B, 1) 0
TEGRA_GPIO(B, 2) 0
TEGRA_GPIO(B, 3) 0
TEGRA_GPIO(K, 0) 0
TEGRA_GPIO(K, 1) 0
TEGRA_GPIO(K, 2) 0
TEGRA_GPIO(K, 3) 0
TEGRA_GPIO(BB, 0) 0
TEGRA_GPIO(BB, 3) 0
>;
status = “okay”;
amixer -c 0 sset ‘I2S2 Mux’ ‘ADMAIF1’
aplay -Dhw:0,0 piano2.wav
There is no signel on GPIO Expansion Header, where is the second I2S interface location.
When I set I2S2 Loopback:
amixer cset -c 0 name=“I2S2 Loopback” 1
amixer -c 0 sset ‘ADMAIF2 Mux’ ‘I2S2’
amixer -c 0 sset ‘I2S2 Mux’ ‘ADMAIF1’
aplay -Dhw:0,0 -f S16_LE -r 48000 c304-2.wav &
arecord -Dhw:0,1 -f S16_LE -r 48000 sample4.wav
I can record data in sample4.wav.
Both of I2S1 and I2S2 dai have the same setting.
So, the sound card setting is ok. Maybe just the pinmux of I2S2 has problem.
Anyone can help me?