Hi Jon,
I also have a problem recording audio on tx2 & max98090. I used sdk r32.1.
Sorry for that I don’t know how to attach image, so I just briefly describe the hardware of audio input:
“1 differential input connecting to IN1/IN2,and 1 mic input connecting to IN3/IN4” on my board.
I defined the routing in device tree as follow:
"x MIC1", "x Mic",
"x MIC2", "x Mic",
"x IN12", "x Lin",
"x Hp", "x HPR",
"x Hp", "x HPL",
"x Lout", "x RCVR",
"x Lout", "x RCVL";
and in machine driver as follow:
SND_SOC_DAPM_HP("x Hp", NULL),
SND_SOC_DAPM_MIC("x Mic", NULL),
SND_SOC_DAPM_LINE("x Lin", NULL),
SND_SOC_DAPM_LINE("x Lout", NULL),
I tested mic input with the follow commands:
nvidia@nvidia-desktop:~$ amixer -c tegrasndt186ref cset name='x Left ADC Mixer MIC2 Switch' on
nvidia@nvidia-desktop:~$ amixer -c tegrasndt186ref cset name='x Right ADC Mixer MIC2 Switch' on
nvidia@nvidia-desktop:~$ amixer -c tegrasndt186ref cset name=“ADMAIF3 Mux” I2S1
nvidia@nvidia-desktop:~$ arecord -D hw:tegrasndt186ref,2 -r 44100 -c 2 -f S16_LE <outputfile.wav>
and tested differential input with the follow commands:
nvidia@nvidia-desktop:~$ amixer -c tegrasndt186ref cset name='x Left ADC Mixer IN12 Switch' on
nvidia@nvidia-desktop:~$ amixer -c tegrasndt186ref cset name='x Right ADC Mixer IN12 Switch' on
nvidia@nvidia-desktop:~$ amixer -c tegrasndt186ref cset name=“ADMAIF3 Mux” I2S1
nvidia@nvidia-desktop:~$ arecord -D hw:tegrasndt186ref,2 -r 44100 -c 2 -f S16_LE <outputfile.wav>
I could detect the aud_mclk & i2s_clk by OSC when recording, but I could not hear anything by “aplay <outputfile.wav>”.
I had verified the headphone & lineout on max98090 work properly.
Did I miss any “amixer” command when recording?
Thank you.