Hi,
I am trying to integrate tlv320aic32x6 with xavier agx dev kit followed instructions as detailed here
asoc-driver-for-jetson-products
codec is connected via i2c1 and i2s2 on 40-pin header.
Speakers works fine, but when I try to record using arecord, getting pcm_read error
nvidia@nvidia-desktop:/mnt/ssd/Jetson-L4T/hardware$ arecord -D plughw:APE,0 -c 2 -d 2 -t wav -f dat /tmp/tmp_file2.wav
Recording WAVE '/tmp/tmp_file2.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
arecord: pcm_read:2178: read error: Input/output error
`cat /sys/kernel/debug/tracing/trace_pipe
arecord-4479 [000] .... 22757.527503: snd_soc_dapm_start: card=NVIDIA Jetson AGX Xavier APE
arecord-4479 [000] .... 22757.528047: snd_soc_dapm_walk_done: NVIDIA Jetson AGX Xavier APE: checks 2 power, 2 path, 0 neighbour
arecord-4479 [000] .... 22757.528072: snd_soc_dapm_done: card=NVIDIA Jetson AGX Xavier APE
arecord-4479 [001] .... 22767.681764: snd_soc_dapm_start: card=NVIDIA Jetson AGX Xavier APE
arecord-4479 [001] .... 22767.682154: snd_soc_dapm_path: *ADMAIF1 XBAR-Capture -> (direct) -> tegra-dlink-44-capture
arecord-4479 [001] .... 22767.682157: snd_soc_dapm_path: *ADMAIF1 XBAR-Capture -> (direct) -> ADMAIF1 Capture
arecord-4479 [001] .... 22767.682286: snd_soc_dapm_walk_done: NVIDIA Jetson AGX Xavier APE: checks 2 power, 2 path, 2 neighbour
arecord-4479 [001] .... 22767.685124: snd_soc_dapm_done: card=NVIDIA Jetson AGX Xavier APE`
Looks like DAPM routes are missing, could you please help us setting the missing routes? Attached device-tree, dmesg, amixer controls, registers
dt.log (455.8 KB)
kernel_log (77.5 KB)
reg_dump (1.7 KB)
settings.txt (809.0 KB)
tried below, still getting error.
amixer -c APE sset 'I2S2 Mux' 'ADMAIF1'
below are the routes
nvidia-audio-card,widgets =
"Line", "TLV Line In",
"Headphone", "TLV Headphone",
"Microphone", "TLV Mic";
nvidia-audio-card,routing =
"TLV Headphone", "TLV LOR",
"TLV Headphone", "TLV LOL",
"TLV Left DAC", "TLV Playback",
"TLV Right DAC", "TLV Playback",
"TLV IN1_L", "TLV Mic",
"TLV IN1_R", "TLV Mic",
"TLV IN2_L", "TLV Mic",
"TLV IN2_R", "TLV Mic",
"TLV IN3_L", "TLV Mic",
"TLV IN3_R", "TLV Mic",
"TLV Capture", "TLV Left ADC",
"TLV Capture", "TLV Right ADC",
"TLV Line In", "TLV Left ADC",
"TLV Line In", "TLV Right ADC";